[Zope-CMF] [PAS] CookieAuthHelper with expiration date for cookies

Andreas Jung lists at zopyx.com
Mon Nov 29 09:17:06 EST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

We have the requirement within a project that a Plone user should
be logged off automatically after N minutes of inactivity (means
the authentication cookie should expire after N minutes).

CookieAuthHelper.updateCredentials() is in charge for the initial
setting of the authentication cookie. Adding an expiration date here
would not be the deal. However the authentication cookie
must be set with an updated expiration date upon every request (in order
to reset the inactivity timer to zero). Is there some way for hooking
this functionality properly into PAS? Otherwise I would have to
hack the ZPublisher somehow...(perhaps using Publisher events...).

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJM87XiAAoJEADcfz7u4AZjolELvi1lkGlMDqwYK8yX+lk907Q8
cueW0VQMTXPeFESHnPZPGGlVm63lm/5j7v5U1OzlC89gQoJji7rzWWMoW+Ixm/AB
5zuuWEvzFtlAGB9GslPwfkeLVxzaM1lqHhswSMl6Xq+bPHn310udOvfsn0Oh1DiU
OE5GOc1ci4WpWSu/UWg/H83W64qUAONpEeBMLPQ8JqGRQ+jvpIWV7+IUMp3P4nJw
6dZgveYuKbJZ93vCoQOr14Nfm5eLTrU9WwXr/P4HJEBx5ykRW5GY1wtVT4DTMxFo
+YDyEareqTu/uxVMhTLr9S9Fn1MVx5FL+vx7OGeEd7O1MTaMRuHNYKE91PAmRGMP
W7+L2dIC2V5dhiEXJb44pvJN+kAxCPhI4IyratnuYw9lbci5RhDOvTNzw2F9jyz7
uxybACTAcjCHZcHukii+Cx1R8lkxzteRoTTlS9WNiZT/axtM2pmqIyaePQS5AlSz
UGdnsqFkC8RObXeJ72qPK3mAPcMTzTs=
=Nsa3
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-cmf/attachments/20101129/1f65dbe3/attachment.vcf 


More information about the Zope-CMF mailing list