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

Re: Sessions


  • Subject: Re: Sessions
  • From: Mark Morris <email@hidden>
  • Date: Tue, 31 Jan 2006 13:25:10 -0600

Norberto,

I posted this idea in response to another question not long ago, and it still has the same caveat: I've never tried it. However, if you register for WOSession's SessionDidTimeOutNotification, serialize the session to persistent store (like a database), then override WOApplication's handleSessionRestorationErrorInContext, it seems like you could restore their session right where it left off. (Perhaps you'd need to maintain some extra state information, such as the current page name, so the restoration would be as smooth as possible.) That way, you could set the timeout to something reasonable, say 30-90 minutes, and avoid the problem with graceful shutdowns, etc., but to the user the only effect would be it might take a tad longer to bring up the first page when they've been off the app for awhile.

Regards,
Mark

On Jan 31, 2006, at 3:20 AM, Alexander Spohr wrote:

WOSession.setTimeOut(0.0);

but you are not able to do a clean app shut-down after the first session is alive. don't do it.

	atze


Am 30.01.2006 um 21:59 schrieb Norberto Menendez:

How is it that you establish sessions that don't time out in WO (for an application with a small number of users < 50) ?

Are there any suggested strategies ?

Thanks

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40onpointsoftware.com


This email sent to email@hidden

_______________________________________________ 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: 
 >Sessions (From: Norberto Menendez <email@hidden>)
 >Re: Sessions (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: EnterpriseObjects in a regular Java application
  • Next by Date: Re: EnterpriseObjects in a regular Java application
  • Previous by thread: Re: Sessions
  • Next by thread: Word of caution: trouble with updating to WO 5.2.4 on Solaris
  • Index(es):
    • Date
    • Thread