setTimeout('alert(\"Automatic logout in 3 minutes\"',1020000);
the number 1020000 is the number of milliseconds to wait before performing this action.
As far as resetting the session, as long as the user refreshes the page from the server or requests another page, the session will reset it's timeout counters.
I think that Session management deserves a more strict control. I personally write my applications into a frameset where there is an Hidden frame that contains a document which is refreshing itself every 20 or 30 seconds.
You may rethink at your application in this way.
The session will end only when the last document will be closed.
Set your documents with an onClose behavior, so that if the customer closes the current document a launch of a session shut-down template is automatically executed.
s-)
SoftIDEA,
MY situation is diff. My application is used by CSRs. They would like get the alert notification because they handle multiple applications and some times they minimize this app. and work on other app., but they dont want lose the unsaved data.
I am displaying an alert 5 minutes before the session actually will be closed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.