• 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: How to know if the wosid in a direct action has expired?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to know if the wosid in a direct action has expired? (From: Ricardo Parada <email@hidden>)

  • Prev by Date: Re: Question about WORepetitions
  • Next by Date: Re: Direct Actions Question
  • Previous by thread: How to know if the wosid in a direct action has expired?
  • Next by thread: Re: How to know if the wosid in a direct action has expired?
  • Index(es):
    • Date
    • Thread