• 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: When is a session restoration error noticed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When is a session restoration error noticed?


  • Subject: Re: When is a session restoration error noticed?
  • From: Robert Tupelo-Schneck <email@hidden>
  • Date: Tue, 29 Sep 2009 09:20:15 -0400

I think this is true: when you manually call terminate() on a session,
it doesn't actually terminate until the next time it goes to sleep.
So if you call terminate() on a session which isn't even awake, it
will go through one more whole request-response cycle successfully
without a session restoration error.

Am I likely to cause any harm terminating a session which isn't awake,
and then preventing it from one more request-response using this in my
Application:
    @Override
    public WOSession restoreSessionWithID(String sessionID, WOContext
wocontext) {
        WOSession session =  super.restoreSessionWithID(sessionID,wocontext);
        if(session==null || session.isTerminating()) return null;
        return session;
    }

Thanks,
Robert
 _______________________________________________
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

  • Follow-Ups:
    • Re: When is a session restoration error noticed?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Finding duplicate objects
  • Next by Date: Re: Can't run the app from within 3.5
  • Previous by thread: When is a session restoration error noticed?
  • Next by thread: Re: When is a session restoration error noticed?
  • Index(es):
    • Date
    • Thread