[CPS-devel] Modify __ac cookie expiration date.

Florent Guillaume fg at nuxeo.com
Wed Mar 29 12:55:10 CEST 2006


On 29 Mar 2006, at 12:42, JoseLuis de la Rosa Triviño wrote:
> I want to allow the user to login and save password for two weeks  
> (as in gmail). I need to modify the expiration date of the __ac  
> cookie, but looking at cookie_authentication gives me no clue,  
> neither logged_in.py. Can anyone help me?

The default cookie crumbler will use a setAuthCookie script, if  
present, to set the cookie.
CMFDefault/skins/control/setAuthCookie.py is an example, just copy it  
in your product and customize it.
Just add the appropriate expires= parameter to resp.setCookie.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com




More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.