Hi, I have been working on an application where when the user logs in, the status field in the database isset to 1 (online), and when logging off set to 0 (offline).
I was wondering if there is a way, using PHP or otherwise, of accomodating for when the user closes the browser manually?
I have been looking at other forums who say that it is possible to set a timer which automatically logs the user off after a set amount of time but I dont know how to actually do this or where to start; will the code go on every page of the site?
Thanks in advance for any replies