instance method get_session

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20 Private — implementation detail, not part of the public API

Signature

get_session(env, sid)

No documentation comment.

Parameters

env req
sid req
Source
# File actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb, line 27
        def get_session(env, sid)
          sid ||= generate_sid
          begin
            session = @pool.get(sid) || {}
          rescue MemCache::MemCacheError, Errno::ECONNREFUSED
            session = {}
          end
          [sid, session]
        end

Defined in actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb line 27 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Session::MemCacheStore

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close