• 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
restore an existing session w/ a DA
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

restore an existing session w/ a DA


  • Subject: restore an existing session w/ a DA
  • From: Nathan Dumar <email@hidden>
  • Date: Mon, 11 Jul 2005 16:59:57 -0400

I think that WOSessionStore.checkOutSessionWithID() is the method that I need to use, but I could be wrong.

If it is, then I need help understanding the second argument, "WORequest aRequest."

I'm making a method where I verify that an email address exists and is correct before I continue with a registration process. In the email, I'd like to have a link that runs a direct action which includes the current session ID and a random number to match. For example:

http:// ... /verify?s=<sessionID>&k=<randomNumber>

Typically, the DA would create a new session, but I would like it to use the session ID from the URL, so that I have the same randomNumber in memory and don't need to insert/fetch from the db. (This gives my users a 2 hour time limit before session timeout, but I'm okay with that.) I know how to get values from the URL ... what I can't figure out is how to use an existing session instead of making a new one. This is where I think I need WOSessionStore.checkOutSessionWithID().

How can I do this?

(I'm assuming, perhaps wrongly, that restoration of the session will result in the page the user was just in, as if it was always there, including values in the variables just as they were.)

Thanks for any help or direction,
Nathan

_______________________________________________
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


  • Follow-Ups:
    • Re: restore an existing session w/ a DA
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Regarding Webobjects Training
  • Next by Date: Re: Regarding Webobjects Training
  • Previous by thread: Re: Regarding Webobjects Training
  • Next by thread: Re: restore an existing session w/ a DA
  • Index(es):
    • Date
    • Thread