From a5eddb534f6c7a76acff9c2e54d394e4697d9fd4 Mon Sep 17 00:00:00 2001 From: Iain Beeston Date: Fri, 27 Feb 2015 10:29:44 +0000 Subject: Explained how to set session expiry through session_store config Most session stores offer an :expire_after option, but it's largely undocumented. Cookie store also supports a number of options via rack (these used to be documented in rails 2.3) --- actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb') diff --git a/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb b/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb index b4d6629c35..cb19786f0b 100644 --- a/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb @@ -8,6 +8,10 @@ end module ActionDispatch module Session + # A session store that uses MemCache to implement storage. + # + # ==== Options + # * expire_after - The length of time a session will be stored before automatically expiring. class MemCacheStore < Rack::Session::Dalli include Compatibility include StaleSessionCheck -- cgit v1.2.3