aspose file tools
The moose likes Servlets and the fly likes Session Timeout redirect to login page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Session Timeout redirect to login page
 
Similar Threads
forward & come back
Security issues on jsp pages
How to validate session in jsp
Using a hidden field to store the url in jstl
Logging out issue