instance method
destroy_session
Ruby on Rails 4.1.16
Since v4.0.13 Last seen in v4.2.9Signature
destroy_session(env, session_id, options)
No documentation comment.
Parameters
-
envreq -
session_idreq -
optionsreq
Source
# 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
Defined in actionpack/lib/action_dispatch/middleware/session/cookie_store.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Session::CookieStore