Re: When is a session restoration error noticed?
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