• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reset session timeout programatically  RSS feed

 
Anirudh Kubatoor
Greenhorn
Posts: 3
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
In my project I have a requirement where in I want to alert an user with a popup whenever the inactive time is about to hit the session timeout time(For ex:5 mins in advance of session expiry), so that the user can click on continue button and programatically extend the server session.

Can any please let me know the best approach to do this?

Thanks in advance.
 
Nauman Hasan
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what the best approach is but one approach could be to do a javascript popup with 5 minutes earlier than the session timeout. Just reset the timer on the Javascript each time the page is reloaded (and have the same JavaScript embedded in all your pages)

~Nauman
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!