This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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?