I recently simulated multiple login in PHP using 1 account. Here's what I did
- opened 2 login screens
- logged into account 1 using the first login screen
- login successful
- logged into account 2 using the second login screen
What I want to do is to logout user 1 when user 2 logs in on the same machine and the same browser.
How do I do that? I also did this with Gmail and if email 1 is logged in and email 2 logs in, Gmail displays an alert box saying that user 1 is logged out (assuming that I log in using the same machine and in the same browser).