I have a member login system using mysql and php 4.
I have set it up to show which members are online (logged in) and which are not.
When a member logs in the status field is updated to 1 and when they log out it is changed back to 0. This work fine providing they remember to use the logout script.
The system is based on sessions. When the log out script is run, it sets the status to 0 and then detroys the session.
If they don't use the logout script and just close the window the status is not changed back to 0, therefore they appear as still online.
Is there anyway around this problem?