IntelliJ Java IDE
The moose likes Portals and Portlets and the fly likes Alert before session ends... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Alert before session ends..." Watch "Alert before session ends..." New topic
Author

Alert before session ends...

Arun Neelan
Greenhorn

Joined: Jul 13, 2007
Posts: 9
In JSP, Is there a way to display an alert to the user, before session time out.
v ray
Ranch Hand

Joined: Mar 15, 2007
Posts: 223
yeah, ofcourse, just check for the place in your jsp code where you are calling the "LogoutAction.do" class or something similar.
In that place, you can call a window.alert() saying "Session is about to be set to null".

Another thing you can do is, in your LogoutAction class, check for the request.getSession() value, and you can do:
 
 
subject: Alert before session ends...
 
Threads others viewed
Alert user before session timeout
WA #2 ..... word association
Session Timeout Handling through java script
Getting access to HttpServletResponse with in sessionDestroyed Method of HttpSessionListener
Notify Users before session expires
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com