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
<code/>and<pre/>for code samples.