diff options
author | Iain Beeston <iain.beeston@gmail.com> | 2015-02-27 10:29:44 +0000 |
---|---|---|
committer | Iain Beeston <iain.beeston@gmail.com> | 2015-02-27 10:29:44 +0000 |
commit | a5eddb534f6c7a76acff9c2e54d394e4697d9fd4 (patch) | |
tree | be70a57c86002afaf8dabd8e250b42b4352de4a9 /actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb | |
parent | 95546d493525a79f2da542c7e3fcff6cd5acca73 (diff) | |
download | rails-a5eddb534f6c7a76acff9c2e54d394e4697d9fd4.tar.gz rails-a5eddb534f6c7a76acff9c2e54d394e4697d9fd4.tar.bz2 rails-a5eddb534f6c7a76acff9c2e54d394e4697d9fd4.zip |
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)
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 + # * <tt>expire_after</tt> - The length of time a session will be stored before automatically expiring. class MemCacheStore < Rack::Session::Dalli include Compatibility include StaleSessionCheck |