private Method

CgiRequest.new_session

Delete an old session if it exists then create a new one.

Source Code

# File action_controller/cgi_process.rb, line 153
def new_session
  if @session_options == false
    Hash.new
  else
    CGI::Session.new(@cgi, session_options_with_string_keys.merge("new_session" => false)).delete rescue nil
    CGI::Session.new(@cgi, session_options_with_string_keys.merge("new_session" => true))
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.