method

get_session

rails latest stable - Class: ActionController::Session::MemCacheStore

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

get_session(env, sid)
private

No documentation available.

# 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