I’m looking for a script, or at least something I can sart from to do the following:
1.
Set the timeout to 20 minutes
Warn the user two minutes before the page will time out with a pop-up. If the user says ‘yes I want to continue’ within the two minutes, reset the timeout to the original 20 minutes and NOT loose what the user has entered so far.
If the user doesn’t click on the ‘yes I want continue’ within the two minuate, time the user out and log them off, sending the screen back to the login page.
I’ve seen lots of sites work like this and I wrote some code on my own when I couldn’t find any, but one big problem is that (a) when the user clicks ‘yes I want to continue’, I refresh the page and loose all that they entered. Not cool. And there are other oddities.
Anyways, does anyone know where I can find some code to use as a basis?
Thanks.