Bookmark Topic Watch Topic
  • New Topic

session expiration

 
rambabu desina
Ranch Hand
Posts: 42
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
how can redirect to login page automatically when session is expired
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
rambabu desina wrote:how can redirect to login page automatically when session is expired


If by "automatically", you mean "on the next request", then you use a Filter.

If instead you mean that the page they are looking at disappears without user action and they see a login page, then you can't and shouldn't.

It is covered here:
http://www.coderanch.com/t/569014/Servlets/java/Redirect-login-page-session-timeout
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!