]> git.openstreetmap.org Git - rails.git/commit
Change session expiry to 28 days when "remember me" is set
authorTom Hughes <tom@compton.nu>
Thu, 23 Feb 2012 11:26:02 +0000 (11:26 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 27 Feb 2012 09:01:48 +0000 (09:01 +0000)
commit7c3a4b497e8f99d2642260ec604d111f4a866b01
tree76f9ff909a6ea83e6b5b58a924bffdc444929c51
parent57ba7d6f0b160a2dc883d84a6864464d5de6083a
Change session expiry to 28 days when "remember me" is set

The expiry is passed directly to memcache, which treats any value
over 30 days as an absolute time, so using 1 month leads to sessions
expiring as soon as they are created.
app/controllers/user_controller.rb