PHP cannot do this of itself. You will have to create a custom session handler and work with a database to store the active sessions. When someone destroys a session (logs out), you must then delete it from the database.