On Monday, March 4, 2002, at 07:59 PM, olev rumm wrote:
> Hello > How can I monitor how many visitors are currently on line, with out > refreshing the frame - like a live monitor. > Olev I've seen questions like this quite a bit on this list. If you really think about it, nobody's "logged in" to your site. :) Your site is throwing out page requests, that's all. There's no "place" for them to log in. If you're referring to "who is currently in the middle of a session on my site", then you'll have to come up with a workaround. Some ideas have included testing to see who has submitted a page request with a session ID within the past few minutes, or things like that. But you'll never be able to make sure someone is "logged in" or not because your server needs to wait for the user to send some information for it to know what it's doing. Think of HTTP as more like the postal service than a telephone service -- you just send data back and forth, rather than have a true interactive (stateful) session. Only with a custom web client like a Perl/Python/Java program could you do otherwise, unless you can come up with a really clever JavaScript code chunk that sends a message to the server when the user closes a browser window or quits or whatever. Even that would not be very reliable. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php