Discussion:
[Erp5-dev] [PATCH] workaround for Chromium time_expires cookie problem Chromium 16.0.912.36 simple ignore timezone information in request workaround - set time_expires in GMT.
Boris Kocherov
2011-12-17 22:55:26 UTC
Permalink
---
.../erp5_auto_logout/setAuthCookie.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bt5/erp5_auto_logout/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.xml b/bt5/erp5_auto_logout/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.xml
index dd68c3a..e686681 100644
--- a/bt5/erp5_auto_logout/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.xml
+++ b/bt5/erp5_auto_logout/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.xml
@@ -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
--
1.7.8.rc3
Julien Muchembled
2011-12-19 16:43:05 UTC
Permalink
Thank you.

http://git.erp5.org/gitweb/erp5.git/commitdiff/4912d34a6665c9eed07c49b8019575f59cfe2058

Julien
Post by Boris Kocherov
---
.../erp5_auto_logout/setAuthCookie.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bt5/erp5_auto_logout/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.xml b/bt5/erp5_auto_logout/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.xml
index dd68c3a..e686681 100644
--- a/bt5/erp5_auto_logout/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.xml
+++ b/bt5/erp5_auto_logout/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.xml
@@ -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
Loading...