Print Page | Close Window

Problem with active users

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2542
Printed Date: 31 March 2026 at 9:28pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Problem with active users
Posted By: sam-
Subject: Problem with active users
Date Posted: 09 May 2003 at 12:34am

I have this problem with the active users function :
Sometime I see me name or some users name many times as an active users,

For Example:

Romeo  09/May/2003  7:36am 09/May/2003  7:36am 0 Min. Microsoft IE 6 Windows XP
Romeo  09/May/2003  7:33am 09/May/2003  7:36am 3 Min Microsoft IE 6 Windows XP

Any one have been in the same prob. ?




Replies:
Posted By: WebWiz-Bruce
Date Posted: 09 May 2003 at 1:46am

As HTTP is a statless protocol it is very hard keeping track of who is online at that time, this means that active user trackers are never 100% accurate.

This user is probally using an IP masking program, or usinmg a proxy server that is changing their IP address. The forum software uses IP addresses to keep track of the user, so if this changes the user is seen as a new user and readded to the active usesr list.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: PrimeraRacer
Date Posted: 09 May 2003 at 9:10am

I'm gonna have a go at writing a mod that checks the names and removes etra entries.

Borg is right though, its not a forum fault, its an ISP kinda thing.

I'll post up what I find out this weekend.

Cheers

Kev



Posted By: sam-
Date Posted: 09 May 2003 at 4:12pm

waiting you PrimeraRacer ,
Cheers



Posted By: MadDog
Date Posted: 09 May 2003 at 4:28pm
borg, why run the check off the ip and not the author id?

-------------
http://www.iportalx.net" rel="nofollow">


Posted By: WebWiz-Bruce
Date Posted: 10 May 2003 at 2:44am

I had a look at the acitive_users_inc.asp file and it seems that I placed the code to remove second username entires in the wrong part of the file. Place the following at line 107 of acitive_users_inc.asp:-

'Delete older second entries if the user has returned in under 10 minutes with a new IP
 If lngActiveUsersID <> 2 Then
  If strDatabaseType = "SQLServer" Then
   strSQL = "EXECUTE " & strDbProc & "DeleteActiveUserDoubleEntry @lngActiveUsersID = " & lngActiveUsersID & ", @strIPAddress = '" & strIPAddress & "'"
  Else
   strSQL = "DELETE FROM " & strDbTable & "ActiveUser WHERE " & strDbTable & "ActiveUser.Author_ID=" & lngActiveUsersID & " AND " & strDbTable & "ActiveUser.IP <> '" & strIPAddress & "';"
  End If
 
  'Detlete from database
  adoCon.Execute(strSQL)
 End If
 
 'Requery the database to allow access to catch up
 rsCommon.Requery



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: WebWiz-Bruce
Date Posted: 10 May 2003 at 2:48am
Still it will never be 100% acurate.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: sam-
Date Posted: 10 May 2003 at 6:39am
Yes , It still the same , I belive its not the same prob with php, right ?


Posted By: WebWiz-Bruce
Date Posted: 10 May 2003 at 6:51am

Active users whether using PHP, ASP, ASP.NET, etc. will never be 100% accurate.

The reason for this is that the protocol (HTTP) that you use to connect to a web site is a statless protocol.

This means that each time a page, file, image, etc. is called by your web browser and connection to the server is opened as soon as the page has finshed downloading the connection is dropped and the server no-longer knows if the person is just reading a page or has left the site.

Also for each image on a page a new sepprate connection is made and then dropped to download that image.

So keeping track of who is on the site is more a limitation with the HTTP protocol and how the Internet works.

So the only way to get around this is to use things like cookies and IP addresses to try and keep track of the user and then leave a 10 minute expiry time to incase the user is reading pages inbetween moving around the site. The problem then is that not everyone has cookies enabled also IP address can change, so there is no 100% way of keeping track of a user.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net