Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.2.9) is shown here.
get_session(env, sid)
public
Get a session from the cache.
# 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