Good morning everyone! Gentlemen, I need guidance and I also need to know if I can do it. It is the following: I have a table in my database that registers the users that are logged in, it follows:
What I want to do is, every time a login is made (besides the normal login routine) it is checked in this table whether the face is logged in or not. If it is logged in, I want to compare the sessions that are in the database and the one I will get at the time of login, and update the session, date and ip. If the comparison is wrong, I want to update the new information, and the session that was there was destroyed.
Can you do this? Thank you!