Re: Sessioning

Laurence Rowe <[email protected]>
Newsgroups gmane.comp.web.zope.general
Message-ID <CAOycyLTzjjaHXXXX6+0E1wKsvn0kxRm=1nWthTpe3US6XvtmRw@mail.gmail.com>
On 23 May 2012 10:56, Richard Harley <[email protected]> wrote:
> Does anyone have a recommendation on how to implement sessioning on Zope 2?
> Basically to set browser timeouts for the user so logout after say 20 mins
> of inactivity. The difficulty we've had previously is detecting what exactly
> 'inactivity' is...
> Cheers
> Rich

Take a look at http://pypi.python.org/pypi/plone.session

It's a PAS plugin that uses signed cookies rather than server side
sessions. These cookies are timestamped and have an expiration timeout
after which they are considered invalid. When you use a short timeout
then there is some javascript that will update the cookie periodically
while the user is active on the page.

Laurence
_______________________________________________
Zope maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.