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.
Originally posted by dallr: What do i need to place on my jsp to check to see if the session if inactive and if so redirect the user to the login page.
Nothing. It's not the JSP's job to handle this.
Rather, use a servlet filter to check if the session credentials exist and forward to the login page or not. This centralizes the processing in one place, and keeps your JSPs clean and free of needless goop.
Joined: Nov 03, 2006
Thanks for the quick feedback, that makes more sense.
But how would i check to see if the session is active?