instance method
get_session
Ruby on Rails 3.2.22.5
Since v3.2.22.5 Last seen in v4.2.9Signature
get_session(env, sid)
Get a session from the cache.
Parameters
-
envreq -
sidreq
Source
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 18
def get_session(env, sid)
unless sid and session = @cache.read(cache_key(sid))
sid, session = generate_sid, {}
end
[sid, session]
end
Defined in actionpack/lib/action_dispatch/middleware/session/cache_store.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Session::CacheStore