• 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 Time out Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Session Time out Problem


  • Subject: Re: Session Time out Problem
  • From: Kaj Hejer <email@hidden>
  • Date: Wed, 7 Jul 2004 09:46:47 +0200

At 10:42 +0530 07-07-04, Tanmoy Roy wrote:
Hi all,

My requirement is as follows:
Session will time out in 30 minutes if there is no activity by user. An alert screen is shown 10 minutes before this asking if the user is interested in extending the session.


We set the session timeout using function setTimeOut(timeout time in milliseconds);

Now my requirement is to do some activity in between. So how could I detect that there are 10 min remained for timeout and hence show alert screen?

Is there any event which is fired automatically when time out time is reached?
Is there any other way to handle session time if there is no activity by user?

Will WOTimer solve the problem???




We use the following in head to give the user a warning some time before the session times out:


<script language="Javascript1.2"> var timeUp=1; var timeLeft=3000;

function startClock() {
timeLeft = timeLeft-timeUp;
setTimeout("startClock()", 1000)
if (timeLeft==0) { alert('the warning you want...');
timeLeft=720000;
}
}
</script>





and has a body tag like

<body onLoad="startClock()">



(based on some stuff from the radarweb pages)



-Kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Session Time out Problem
      • From: Michael Henderson <email@hidden>
  • Prev by Date: Session Time out Problem
  • Next by Date: Re: numberformat problems
  • Previous by thread: Session Time out Problem
  • Next by thread: Re: Session Time out Problem
  • Index(es):
    • Date
    • Thread