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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jerrywwalker% 40gmail.com

This email sent to [EMAIL PROTECTED]


--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems

    [EMAIL PROTECTED]
    203 278-4085        office



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to