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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to