Re: Session termination
Re: Session termination
- Subject: Re: Session termination
- From: Chuck Hill <email@hidden>
- Date: Sun, 6 Apr 2008 11:42:01 -0700
Hi Miguel,
On Apr 6, 2008, at 8:19 AM, Miguel Arroz wrote:
Quick question: is the sleep() method called when the session
terminates due to a timeout (ie, not used for 60 minutes)? IE, can I
trust that sleep() will occur with isTerminating being true on that
situation?
No, the opposite. awake() and sleep() are only called in response to
requests. Session timeout happens X seconds after the last request.
So sleep will never be called for a session that times out, only
terminate(). If you want to set a flag on timeout, you can override
the private API method
public void _terminateByTimeout()
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden