• 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: Session Restoration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Session Restoration


  • Subject: Re: Session Restoration
  • From: Sacha Mallais <email@hidden>
  • Date: Fri, 2 Sep 2005 10:57:23 -0700

On Sep 2, 2005, at 10:53 AM, David Griffith wrote:

HI all,

Can anyone tell me if this looks correct?

WOSession curSess = WOApplication.application().restoreSessionWithID (recentSessionID, context());

I am calling this in the DirectAction.java class to attempt to restore an existing session using an ID (recentSessionID) that I know.
The intention was to avoid multiple sessions being created in a certain situation. The recentSessionID exists already and was recently created or if it does not exist it is handled differently.


However even though it does appear to use the Session ID that I give it, a new session appears to be created with each connection (according to the JavaMonitor at least).

Is it possible the session is timing out?

Generally you don't need to manually restore the session, even in direct actions. Is there a reason why you're doing this? Where are you getting recentSessionID from?


sacha


-- Sacha Michel Mallais -- President / Senior Developer Global Village Consulting Inc. http://www.global-village.net/



_______________________________________________
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: 
 >Session Restoration (From: David Griffith <email@hidden>)

  • Prev by Date: Session Restoration
  • Next by Date: Re: Abstract causes server exception
  • Previous by thread: Session Restoration
  • Next by thread: Re: Session Restoration
  • Index(es):
    • Date
    • Thread