I am using
jsp for view pages and
servlet for setting resetting sessions
I am developing an application that needs to logged out when using different tabs just like Gmail
The Scenario is like this
let us assume we have user1 and user2
step1: I have logged in as user1 in a browser
step2: I take new tab in the same browser and log in as user2. At this moment I want user1 to be logged off automatically from tab1.
In current scenario the first tab automatically replaces user1 with user2.
I need it like Gmail when I login as different user from new tab then the first tab automatically get logged out with a message.
Please advice me how to do this?