Currently, I have a class that tells PHP to use MySQL to manage the session data. Users who wish to log in enter their username and password, and if there is a match the class encrypts the user's email and puts it into the session table (the data row) along with an ID that it generates (in the ID row).
The problem is that, if I log in with one user, and then go to a different browser or computer and log in with another user, the first user's session is overwritten by that of the second user.
I've run into this issue before, but I can't for the life of me find any code saved, or anything in search results, that can help me create a new row for the additional users, rather than only holding one row in the database.
Any ideas would be most appreciated.