we are developing a web application on bea.our requirement is after session timeout any request should be forward to login page(i set session timeout in web.xml),how to know that session is timeout and how to redirect it login page.
On a sucessfull login, bind an object to the user's session. With each hit to any of your other pages (a ServletFilter is perfect for this) check the session for the existence of this object. If it's there, you know the user is currently logged in. If it's null, you know they're not. Redirect them to the login page. [ May 15, 2005: Message edited by: Ben Souther ]