1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #2400: Fix expiration time for mencache.

When the expiration time specified is 30 days or more in seconds, Memcache treats the expiration as an absolute date by converting the amount of seconds specified to a Unix epoch date. Be careful, because specifying 40 days in seconds will set the expiration to a time in 1970, which will yield unknown results.
This commit is contained in:
Daniel Molina 2013-10-25 18:45:23 +02:00
parent bf850adffd
commit 20831c7634

View File

@ -202,7 +202,7 @@ helpers do
#end user options
if params[:remember] == "true"
env['rack.session.options'][:expire_after] = 30*60*60*24
env['rack.session.options'][:expire_after] = 30*60*60*24-1
end
return [204, ""]