Commit 4912d34a authored by Boris Kocherov's avatar Boris Kocherov Committed by Julien Muchembled

erp5_auto_logout: RFC 6265 expects 'Expires=' field to contain GMT date

parent 13274815
......@@ -183,7 +183,7 @@ if expire_interval not in (\'\', None):\n
expire_time_offset = 0.00069444444444444436 * (expire_interval / 60.0)\n
ac_expires = DateTime() + expire_time_offset\n
ac_renew = DateTime() + expire_time_offset / 2\n
kw[\'expires\'] = ac_expires.rfc822()\n
kw[\'expires\'] = ac_expires.toZone(\'GMT\').rfc822()\n
# save next \'__ac\' renew time\n
context.portal_sessions[ac_session_key_pattern %user_name][\'ac_renew\'] = ac_renew.millis()\n
else:\n
......
10
\ No newline at end of file
11
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment