Re: How to know if the wosid in a direct action has expired?
Re: How to know if the wosid in a direct action has expired?
- Subject: Re: How to know if the wosid in a direct action has expired?
- From: "Jerry W. Walker" <email@hidden>
- Date: Wed, 7 Mar 2007 22:59:32 -0500
If you read the WODirectAction JavaDoc, you will find this paragraph
just before the "Nested Class Summary":
To handle stale session IDs (e.g. session IDs stored in cookies, and
those session IDs refer to expired sessions), make sure to do the
following at the beginning of your direct action method:
public WOActionResults myAction() {
if ( getSessionIDForRequest(request()) != null &&
existingSession() == null ) {
// special behavior, like a returning a login page, e.g.
return pageWithName("LoginPage");
} else {
// whatever else you'd normally do here
}
}
For further explanation, check the referenced methods.
Regards,
Jerry
On Mar 7, 2007, at 4:48 PM, Ricardo Parada wrote:
Hi,
How can a direct action find out if the wosid included in the
direct action URL has expired?
Any ideas?
Thanks
Ricardo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial
Strength Internet Enabled Systems
email@hidden
203 278-4085 office
_______________________________________________
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