• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alert before session ends...

 
Arun Neelan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSP, Is there a way to display an alert to the user, before session time out.
 
v ray
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic