Hi, I am using a filter whcih checks each time if the session is existing or not and at the time of login if there is no session, creates new session. But now my issue is, when i am in the mid of application and somehow session expires, it should redirect to the Login page with the message - "Session expired". I am redirecting it to the login page, but how do i display session expired message for that. Please help. Thanks, -Jack
One way is available to do it by checking the referrer header of HTTP after a no session condition is detected by the filter. If the session has expired middle of the application then the domain or the referrer must be the one of your application. This is one possibility. There may be better ways available.