[Mailman-Users] Why does iOS's Safari log out the moderator web page?

Mark Sapiro mark at msapiro.net
Tue Feb 4 03:27:01 CET 2014


On 02/03/2014 05:53 PM, Peter Shute wrote:
> 
> That makes sense. Is there any way around it? Is it possible to make it use persistent cookies?


If you're willing to modify the code, see the MakeCookie function in
Mailman/SecurityManager.py.

You could replace the comment

        # We use session cookies, so don't set `expires' or `max-age' keys.

by something like

        c[key]['Max-Age'] = 3600 * 24 * 5

to give the cookie a lifetime of 5 days.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list