Re: Session Time out Problem
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.