| Author |
Topic Search Topic Options
|
india
Senior Member
Joined: 21 November 2003
Status: Offline
Points: 499
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 January 2004 at 12:18pm |
next moment
770
i think some bug, isn't it or such high fluctuations cant be there
|
|
India
http://mumbai2.netfirms.com
|
 |
Mart
Senior Member
Joined: 30 November 2002
Status: Offline
Points: 2304
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 January 2004 at 12:23pm |
|
Could be people clicked on the wrong link or realise this site isnt what there looking for and close the window straight away.
|
 |
neotrix
Mod Builder Group
Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 January 2004 at 12:37pm |
|
but still, the difference is in thousands... it cant be so....
|
|
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 January 2004 at 1:07pm |
|
Counting active users is never acurate as HTTP is a state less prorotocol, so it is impossible to keep track of such things.
How the active users counters works is by counting sessions. Each time
a user comes to the site a session is started for that user.
The problem then is if a user has cookies disbled a new session is
started for each HTTP request. Each page is then 1 HTTP request, but
then each image on the page is another HTTP request.
This means that if a visitor has cookies disabled and there are 20 images on a page 21 sessions will be created for that user.
Sessions usully last for 20 minutes so this can quickly mount up.
This isn't a bug more a work around with the way HTTP works as being
able to workout who is connected is never going to be accurate unless
HTTP is changed to a connection orinated protocol.
|
|
|
 |
Gullanian
Senior Member
Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 January 2004 at 1:13pm |
|
Can't you detect if the cookie holds a value (to show if they have cookies enabled/disabled) and if they have cookies disabled, track the visitor based on IP address, otherwise use cookies?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 18 January 2004 at 6:23am |
|
Not unless you want to add a hell of allot of overhead to the site and even then it won't be accurate.
If you do a little research on how HTTP works then you will see how difficult it is to detemine if a user is online or not.
HTTP being a stateless protocol means that a connection is only
established during the time that that page, image, etc. is downloading
to the calling browser, once the page, image, etc. has finshed being
sent the connection is dropped.
There is no way of tracking users using HTTP except work arounds like
cookies, but cookies are disabled there is no way of tracking the user.
The IP address could also change for each connection, that means you
could have over HTTP connections from one user for one page as each
image, link file (CSS, JS, etc) would require a new HTTP connection to
the server.
Edited by -boRg-
|
|
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 January 2004 at 6:04am |
|
could be google... i noticed google was on my site, and was takin up about 6 guest spots on the Active User page
|
|
|
 |
the boss
Senior Member
Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 January 2004 at 8:46am |
|
for each request of document a new HTTP session is opened.. and also browsers usualy many simeltaneous HTTP connection to websites which range usualy between 3 - 10 so average each visitor has 3 or more connection in normal conditions...
|
|
|
 |