[Zope] session invalidate - using python
p.t.
p.training@tin.it
Wed, 30 Oct 2002 23:26:07 +0100
Chris,
thanks for the very clear explanation.
In effect, I was trying to undestand how session expiring works, because
I'm looking for a way to detect when a request coming from a browser
associated to a session find the session expired.
Have you a suggestion?
TIA,
p.t.
At 16:53 30/10/2002 -0500, Chris McDonough wrote:
>No. By doing data.invalidate(), you've invalidated the data object
>(which means it will eventually be removed from the session data
>container), but that won't magically turn it in to the None object.
>
>It makes sense that on each call you're getting a new data object as
>you're invalidating the old one.
>
>getSessionData returns a session data object associated with the
>current browser id. The "create=0" argument doesn't mean "dont
>create a session data object", it means "don't create a session data
>object unless there is a current browser id". Since there is a
>current browser id, a session data object is returned instead of
>None.