I currently use PHP sessions as the basis of my user login system, with a successful login setting $_SESSION['userid']. This allows a user to log in to the same account from multiple machines.
However, I'd like to implement the following features:
- Log out everywhere, similar to what Stack Overflow has.
- See where else one is logged in.
Both will likely require more than just a session variable, and I'm willing to put more information into the database to accomplish these. What is a standard way to do the above?