# HG changeset patch # User Christophe de Vienne # Date 1418066515 -3600 # Node ID aa05b41a58160b7cd827975c078c496462c552b0 # Parent 5c59f0c8fbd1a6563403834d4567385fe3fb0739 Cookie 'max_age' must be a integer, not a string. If not, the value is used verbatim for the 'expires' of the cookie, which is invalid. Closes #4731764. diff -r 5c59f0c8fbd1 -r aa05b41a5816 pyramid_cubicweb/login.py --- a/pyramid_cubicweb/login.py Sat Nov 15 21:07:25 2014 +0100 +++ b/pyramid_cubicweb/login.py Mon Dec 08 20:21:55 2014 +0100 @@ -35,7 +35,7 @@ max_age = None if request.params.get('__setauthcookie') == '1': - max_age = '604800' + max_age = 604800 headers = security.remember(request, user_eid, max_age=max_age) new_path = request.params.get('postlogin_path', '/')