instance method get_session

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18 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_controller/session/mem_cache_store.rb, line 28
          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_controller/session/mem_cache_store.rb line 28 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::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