Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Removing a session
06-07-2004, 02:17 PM #1
- Join Date
- Jun 2003
- Thanked 8 Times in 8 Posts
Removing a session
I have chat rooms built with PHP. When a user enters a room, the count stored in my sql database goes up one, so that those who are yet to enter the room can see how many are in there...
Now, I know I can subtract one when a person has been inactive for a certain amount of time (eg. time them out for being idle after 15 minutes) - but what I would like to do is subtract one immediately when the person closes the browser.
Thanks in advance for any point in the right direction!