• 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: Webobjects, Flex and Sessions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Webobjects, Flex and Sessions


  • Subject: Re: Webobjects, Flex and Sessions
  • From: David LeBer <email@hidden>
  • Date: Mon, 10 Mar 2008 10:43:55 -0400


On 10-Mar-08, at 10:30 AM, Thierry Kramis wrote:

my understanding is, that you can access a direct action with out a session id. so basically if i work with session ids i would need to check if a session id is valid?

If you provide a session id to the DA, WO will try and restore that session for you. By default, if there is no matching session it returns the "session expired" page. To customize that behaviour you would need to override: public handleSessionRestorationErrorInContext(WOContext aContext) in your Application class.


Am 10.03.2008 um 15:15 schrieb David LeBer:


Generating a session in the login DA is easy: Just call session();

To get its ID just call: session().sessionID();

If no session currently exists a new one will be generated.

Reusing the session is equally easy:

Append the sessionID to the url of the DA you are calling:

http://www.theapp.com/cgi-bin/WebObjects/wa/action?wosid=THESESSIONIDSTRING

The session will be restored automatically.

Alternately, if you embed the sessionID in some return

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


_______________________________________________ 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: Webobjects, Flex and Sessions
      • From: Lachlan Deck <email@hidden>
References: 
 >Webobjects, Flex and Sessions (From: Thierry Kramis <email@hidden>)
 >Re: Webobjects, Flex and Sessions (From: David LeBer <email@hidden>)
 >Re: Webobjects, Flex and Sessions (From: Thierry Kramis <email@hidden>)

  • Prev by Date: Re: Vertical inheritance with a non-abstract superclass
  • Next by Date: Re: Hello, Im really noob but really interested in learing
  • Previous by thread: Re: Webobjects, Flex and Sessions
  • Next by thread: Re: Webobjects, Flex and Sessions
  • Index(es):
    • Date
    • Thread