Handling uncontrolled Logoff from Website



i’m having a problem with a counter that shows the numbers of logged-in users. the bookkeeping works fine, if the users logoff from the website by using the logoff-button. but if they just close the browser, they still remain as active. this is not exactly a language-based problem, more a conceptual problem.

any ideas?

thanks and hang loose

ps: i’m aware of the fact, that in general this is a client-side problem, but perhaps there are any ideas how to deal it with a server-script…)


There have been a couple of discussions on this and the general concensus was that if a user doesn’t call/load a page in a specified period of time (whatever seems appropriate) the user is then taken off of the logged on list.