Re: Count visitors on my website
- From: Michael Fesser <netizen@xxxxxx>
- Date: Sun, 15 Jul 2007 03:14:32 +0200
..oO(Hadron)
Michael Fesser <netizen@xxxxxx> 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
.
- Follow-Ups:
- Re: Count visitors on my website
- From: Hadron
- Re: Count visitors on my website
- References:
- Count visitors on my website
- From: Ciaran
- Re: Count visitors on my website
- From: Michael Fesser
- Re: Count visitors on my website
- From: Hadron
- Count visitors on my website
- Prev by Date: Re: Count visitors on my website
- Next by Date: Re: Hi, I'm looking for a good book on PHP design patterns for a OOP beginner - Reccommendations please
- Previous by thread: Re: Count visitors on my website
- Next by thread: Re: Count visitors on my website
- Index(es):
Relevant Pages
|