This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

session expiration  RSS feed

 
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
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!