Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session time out

Status
Not open for further replies.

ram123

Programmer
Mar 6, 2001
59
US
Is there any way to alert users before their session get timed out? If so with the users input can i reassign the session?
 
I've used this javascript:

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.

 
mcmoyer,
Thanks, great it is a perfect solution for my problem.

Once again thanks

Ramesh
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top