Help setting cookie max_age

33 views
Skip to first unread message

Jay Kyburz

unread,
Oct 30, 2013, 7:08:47 PM10/30/13
to web...@googlegroups.com
Hello webapp2 folks,

I'm having difficulty overriding the default for cookie max age in sessions.

I'm not sure how I am supposed to go about it, but I am simply trying to change the value when I import the module like this..

from webapp2_extras import sessions

sessions.default_config['cookie_args']['max_age'] = 1209600

What is the correct way to do this? Does anybody else have any ideas about what I might be doing wrong?


I am using the session in conjunction with the auth module, as a part of Alex's gae-simple-auth.


Jay.
Reply all
Reply to author
Forward
0 new messages