method
destroy_session
rails latest stable - Class:
ActionDispatch::Session::CookieStore
destroy_session(env, session_id, options)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/session/cookie_store.rb, line 64
def destroy_session(env, session_id, options)
new_sid = generate_sid unless options[:drop]
# Reset hash and Assign the new session id
env["action_dispatch.request.unsigned_session_cookie"] = new_sid ? { "session_id" => new_sid } : {}
new_sid
end