Re: Trigger saveData on session termination
Re: Trigger saveData on session termination
- Subject: Re: Trigger saveData on session termination
- From: "Jerry W. Walker" <email@hidden>
- Date: Tue, 19 Apr 2005 06:35:13 -0400
If you issue a terminate() message to your session, doing so will cause
"...the session to terminate after the conclusion of the current
request-response loop." However, WOApplication keeps a timer which can
be set by setSessionTimeOut() that sets "...the interval, in seconds,
during which a session may be idle before it times out." When that
timer fires, WOApplication sends a terminate() message to the session.
So, whether sent explicitly by your code, or sent by WOApplication when
the timer fires (or sent by WOApplication when it receives a
terminate() message either explicitly or when its setTimeout() timer
expires), the terminate() method is still what terminates the session
at the end of the current R-R loop. Overriding said terminate() method
achieves the result requested in Ute's message.
Regards,
Jerry
On Apr 19, 2005, at 4:05 AM, Nathan Hampton wrote:
That was my immediate thought, but the API for WOSession says "Causes
the session to terminate after the conclusion of the current
request-response loop." This would seem to imply that it is not
automatically called when a session times out.
--NCH
On 19 Apr 2005, at 12:54 AM, Hugi Thordarson wrote:
Override terminate() in your session class and do your work there.
And remember to call super.terminate() afterwards :-).
Cheers,
Hugi
On 19.4.2005, at 07:37, Ute Hoffmann wrote:
Hello,
is it possible to have a method in the session, which is executed
when the session terminates? I know how to do it when a logout
button is hit, but I would like the method to execute also, when a
session times out. Is there a way to archieve this? If yes, how?
Many thanks,
Ute
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
--
__ Jerry W. Walker, Partner
C o d e F a b, LLC - "High Performance Industrial Strength Internet
Enabled Systems"
email@hidden
212 465 8484 X-102 office
212 465 9178 fax
_______________________________________________
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