I am trying to develop a functionality in JSP-Servlets where I need to log out an user when he logs out from other tab of the same browser.
How to achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Normally if browser opens a new tab it shares the same session. So if session is invalidated it will automatically logout the user from the other tab.
I hope you have a security filter that checks if the user session is still valid. And redirects to login screen if user session is not valid.