• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Session termination
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Session termination (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Re: Setting the Session class name
  • Next by Date: Are one-to-one relationships valid?
  • Previous by thread: Session termination
  • Next by thread: Setting the Session class name
  • Index(es):
    • Date
    • Thread