Ok so I got the php script I am using to use a session variable and write to the database a 1 showing the person online. Now the question I have is how do I get it to write back to the database a 0 to show them offline. I know I can do it with a logout button but what about those people who close the browser without logging out?
Any help would be awesome! Thanks!
MM