title: How to set offline a User in the DB when it closes the browser?
body: <p>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 !</p>
  
  <p>Ps: Yes, i'm using SESSION</p>