Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.2.1) is shown here.
new_session()
private
Delete an old session if it exists
then create a new one.
# File actionpack/lib/action_controller/cgi_process.rb, line 116
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