This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Session Timeout redirect to login page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Timeout redirect to login page" Watch "Session Timeout redirect to login page" New topic
Author

Session Timeout redirect to login page

Justin Howard
Ranch Hand

Joined: Feb 19, 2009
Posts: 162
Hi All,

How can I redirect all the pages (even the one opened in different tabs) to the login page after the session has timed out.

Thanks
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
You could use a filter that checks for validity of the session and hence delegates to the executing servlet or interrupts the workflow and forwards to the login page.


JDBCSupport - An easy to use, light-weight JDBC framework -
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Timeout redirect to login page
 
Similar Threads
Security issues on jsp pages
Using a hidden field to store the url in jstl
How to validate session in jsp
forward & come back
Logging out issue