I have some query regarding browser close issue.
I am using xcart.When user have logged in website and Any situation browser will be closed any so session will be destroyed..and also run the sql query for user status will be offline.
Regards,
Manish Patel
The code to update the users status could be moved into an include file, something along the lines of this:
This could then be included on the site home page for example, and is independant of who is actually online.
You would obviously need a column (timestamp would be nice here) to record their activity