instance method
find_session
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
find_session(env, sid)
Get a session from the cache.
Parameters
-
envreq -
sidreq
Source
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 30
def find_session(env, sid)
unless sid && (session = get_session_with_fallback(sid))
sid, session = generate_sid, {}
end
[sid, session]
end
Defined in actionpack/lib/action_dispatch/middleware/session/cache_store.rb line 30
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Session::CacheStore