@CharlesFeb 03.2005 — #[i]Originally posted by Andrey222 [/i]
[B]I need to logout user if he leave the site in any way [/B][/QUOTE] They you are SOL. You'll need to keep track of the time on the site and log them out when they've been inactive for a few hours.
If you don't need this information, but it would be nice to have you could do something with JavaScript. But JavaScript doesn't work for all users.
The trick is to use the JavaScript "onunload" handler to cache an image. Only instead of an image, we call your CGI script: