[Zope] Session timeout

Dieter Maurer dieter@handshake.de
Wed, 21 Aug 2002 20:13:39 +0200


Peter Bengtsson writes:
 > How can I in an easy way find out when a session expires?
 > 
 > On way would be to store in the session "SessionSetDateTime" and then look 
 > at the session_data object and do the math.
 > Before I do that I just wanna check if there already is a way to do this 
 > stuff. Is there.
 > Like
 > <dtml-var "REQUEST.SESSION.expiresWhen()">
 > or
 > <dtml-var "REQUEST.SESSION.minutesLeft()">
When I understand it right, then the session timeout it refreshed
whenever you are able to access the session this way.

This means, you should get the defined timeout value.
Surely, there is a way to ask the session container for this value.


Dieter