method

set_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.

set_session(env, sid, session_data)
private

No documentation available.

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