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.
hi to display the session expired message you can use an intermediate page which shows that the session is expired then from that page you can redirect to the login page.Thanks
AMAR DEEP SINGH CHAUDHARY, please do us all a favor and change your display name to use mixed or lowercase. The all uppercase is rather jarring. Our eyes will thank you!
I was just looking for a session timed out message to be displayed on the login page itself, when the session is invalidated or expired and the user is redirected to the login page.