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

Re: Session timeout question


  • Subject: Re: Session timeout question
  • From: Mark Morris <email@hidden>
  • Date: Sun, 22 Jan 2006 21:50:23 -0600

Another more complicated but cool ;-) approach would be to register for WOSession's SessionDidTimeOutNotification, serialize the session to persistent store (like a database), then override WOApplication's handleSessionRestorationErrorInContext to reload the saved session.

You'd still have the session in-memory unless it times out, then you'd have the ability to reload. You could still decide the session was too old, if you wanted.

Never tried it myself, but seems like it could be made to work.

Good luck!

Regards,
Mark

On Jan 22, 2006, at 9:38 PM, email@hidden wrote:

Hello Norberto;

One way to do this is to add some code to your WO page which causes a java timer to periodically fire at about half the session timeout. This javascript should invoke a URL with the wosid from a direct action. This has the end effect of keeping the session alive as long as the page is open.

cheers.

I want to build an application where the users should not "time out"; ideally, they log in, and don't log out until the end of the day. The application is for a small number of users (<50) submitting data.


___
Andrew Lindesay
www.lindesay.co.nz



_______________________________________________
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: 
 >Re: Session timeout question (From: email@hidden)

  • Prev by Date: Re: Session timeout question
  • Next by Date: Re: Managing EOF caching
  • Previous by thread: Re: Session timeout question
  • Next by thread: Database handling in Deployment
  • Index(es):
    • Date
    • Thread