aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Alert user before session timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Alert user before session timeout" Watch "Alert user before session timeout" New topic
Author

Alert user before session timeout

Srinivasarao Borra
Greenhorn

Joined: Aug 01, 2006
Posts: 7
I need some help displaying an alert to the user of their session expiration. If the click okay I need some type of server call that resets their session time but maintains their session variables.

Please help as this is very critical.

Srinivas
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425

I need some type of server call that resets their session time but maintains their session variables.


This is javascript related one, javascript support functions which can be called after "N" seconds. On page load event call setTimeout() function with function to be invoked and timeout period. On the timeout function you can alert the user and based on the response you can make asynchronous request to the server to keep the session active.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Search Google for

Pascarello Session Timeout

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Alert user before session timeout
 
Similar Threads
Display server message
jtable
Session management configuaration Issue
Alert user before session timeout
Session Timeout Handling through java script