- In portal_skins, click the tab Find and search for the script with identifier
setAuthCookie
. - Click the button "Custom" to edit the script.
- Replace the line
resp.setCookie( cookie_name, cookie_value, path='/')
with
from DateTime import DateTime
expires = (DateTime() + 14).toZone('GMT').rfc822()
resp.setCookie( cookie_name, cookie_value, path='/', expires=expires) - Log out CPS, log in again and you will not need to log in again until fourteen days later.
Did not find a how-to for your problem?
Ask me to write the how-to post by writing to the mailing-list at cps-devel [@] lists [.] nuxeo [.] com or writing to me to joseluisdelarosa+cpshowto [@] gmail [.] com. Note: I'll keep all conversations on the official mailing list.
Sunday, June 17, 2007
How to set the expiration time of the authentication cookie
CPS uses the cookie_authentication tool to handle the cookie authentication engine. By default, the cookie issued by CPS never expires. If you need to set an expiration time, this is your post.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment