method

set_session

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

Method deprecated or moved

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

set_session(env, sid, session_data)
private

No documentation available.

# File actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb, line 37
        def set_session(env, sid, session_data)
          options = env['rack.session.options']
          expiry  = options[:expire_after] || 0
          @pool.set(sid, session_data, expiry)
          sid
        rescue MemCache::MemCacheError, Errno::ECONNREFUSED
          false
        end