Changeset 8177
- Timestamp:
- 11/21/07 05:00:25 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1-2-stable/actionpack/lib/action_controller/cgi_process.rb
r7720 r8177 37 37 38 38 class CgiRequest < AbstractRequest #:nodoc: 39 attr_accessor :cgi, :session_options , :cookie_only39 attr_accessor :cgi, :session_options 40 40 class SessionFixationAttempt < StandardError; end #:nodoc: 41 41 … … 44 44 :prefix => "ruby_sess.", 45 45 :session_path => "/", 46 :session_key => "_session_id", 46 47 :cookie_only => true 47 48 } unless const_defined?(:DEFAULT_SESSION_OPTIONS) … … 51 52 @session_options = session_options 52 53 @env = @cgi.send(:env_table) 53 @cookie_only = session_options.delete :cookie_only54 54 super() 55 end 56 57 def cookie_only? 58 session_options_with_string_keys['cookie_only'] 55 59 end 56 60 … … 115 119 else 116 120 stale_session_check! do 117 if @cookie_only&& request_parameters[session_options_with_string_keys['session_key']]121 if cookie_only? && request_parameters[session_options_with_string_keys['session_key']] 118 122 raise SessionFixationAttempt 119 123 end