lundi 25 juillet 2016

How to set offline a User in the DB when it closes the browser?

i have a logout function that sets the User offline in my DB (mysql), but if it just closes the browser, in my DB the User is still online despite it's not , How can i manage this? How can i set the User Offline without press the logout botton? Cheers in advance !

Ps: Yes, i'm using SESSION

Aucun commentaire:

Enregistrer un commentaire