This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
 
It's not a secret anymore!