Posted by Michael Fesser on 07/15/07 01:14
..oO(Hadron)
>Michael Fesser <netizen@gmx.de> writes:
>
>> Such "statistics" are never accurate. HTTP is a stateless protocol,
>> there's no such thing like a "currently online user". A user comes,
>> sends a request, gets a response and is gone. Next request, next user.
>
>So you clearly have no clue.
Sure?
>PHP maintains sessions and the user can be logged for that duration and
>therefore only counted once.
You are the second one in this thread who obviously didn't read the "not
logged in" in the original post.
And what does session counting tell you? Sessions can be open for hours
without any user interaction. The user could have died already in front
of his monitor and his session would still be open.
Whatever way you go - it's always just guessing. So why bother at all?
Why show a questionable "information" that is of absolutely no use for
the visitor? Just to show how cool and active the "community" is? If you
want that you can use rand() - it's much easier than all others methods.
Micha
[Back to original message]
|