Print Page | Close Window

b4 active user bug

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=1247
Printed Date: 30 March 2026 at 4:29am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: b4 active user bug
Posted By: doublelfan
Subject: b4 active user bug
Date Posted: 22 March 2003 at 5:08pm

Sometimes when I have multiple users on I'll look at the active_user.asp page and some people will show up 3-4 times.

Mike



-------------
http://mypcclinic.com/">
Free Computer Help 24-7



Replies:
Posted By: fernan82
Date Posted: 22 March 2003 at 7:00pm

I just came to post about the same...........last time i posted about it i was told that the active users list was never perfect since it's based on the IP addresses and dial up users can get disconnected and get a new ip and it'll come up twice, but come on -boRg-, this is ridiculous, look at the that:



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: doublelfan
Date Posted: 22 March 2003 at 7:01pm
also, there's an anonymous user.  How does this happen and if there's a way to mask your online status why can't I find it in the profile?

-------------
http://mypcclinic.com/">
Free Computer Help 24-7


Posted By: fernan82
Date Posted: 22 March 2003 at 7:03pm

Originally posted by doublelfan doublelfan wrote:

also, there's an anonymous user.  How does this happen and if there's a way to mask your online status why can't I find it in the profile?

It's not on the profile, you just uncheck the "Add me to the active user list" box when you log on and you'll be anonymous...



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: Massman82
Date Posted: 22 March 2003 at 7:05pm
Can't you make it check the username. This way, multiple users will not show up. (Of course do not check for Guests!)


Posted By: fernan82
Date Posted: 22 March 2003 at 7:08pm
I don't think a user can change his IP so quick like to get listed so many times, you saw the pic?.....and it happens just like that all the time........that sounds like a bug to me...

-------------
FeRnAN
http://www.danasoft.com/">


Posted By: doublelfan
Date Posted: 22 March 2003 at 8:39pm
Could be with aol users running through the proxy...but then shouldn't that effect the session as well?

-------------
http://mypcclinic.com/">
Free Computer Help 24-7


Posted By: WebWiz-Bruce
Date Posted: 24 March 2003 at 3:34am

If you are a dodgy person not wanting to be traced on the web you can get IP masking tools, these tools mask your IP address and will change your IP address contiously.

Active users lists are nevr acurate, they are only ever a guide. Look at any live stats program that tells you the number of users on your site, or any active users program, none are acurate.

HTTP, the protocol for looking at web pages, is a stateless protocol, meaning that for each page, image on that page, etc. a new connection is made to the web server, once the page, image, etc. is downloaded the connection is dropped to the web server and there is noway of telling if that user is just reading the page or closed there browser. The next page that person calls the web server has no-way of know if this is a new user or the same user again. You can use cookies to keep track of users to see if it is the same user, but then if the user has cookies disabled there is no-way to track the user.

The active users list for the forum could be changed to also check the username as well, but as the code for the active user has to be fired up each time a page is clicked on this will also effect performance of the forum engine and also add extra overhead on the web server. As the active users list is only for a rugh guide and not essential in the running of the forum I can't see the point in the extra overhead.



-------------
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: fernan82
Date Posted: 24 March 2003 at 8:37am

I add a new stored procedure to check the user ID instead of the IP and change the code in active_users_inc.asp to this:

If lngActiveUsersID <> 2 Then
If strDatabaseType = "SQLServer" Then
 strSQL = "EXECUTE wwfSpActiveUsersWhereIDis @lngActiveUsersID = '" & lngActiveUsersID & "'"
Else
 strSQL = "SELECT " & strDbTable & "ActiveUser.* From " & strDbTable & "ActiveUser WHERE Author_ID='" & lngActiveUsersID & "';"
End If
Else
If strDatabaseType = "SQLServer" Then
 strSQL = "EXECUTE " & strDbProc & "ActiveUsersWhereIPis @strIPAddress = '" & strIPAddress & "'"
Else
 strSQL = "SELECT " & strDbTable & "ActiveUser.* From " & strDbTable & "ActiveUser WHERE IP='" & strIPAddress & "';"
End If
End If

That way if the user is a guest it checks the IP and if the user is not a guest it checks the user ID, it should make it more accurate and shouldn't affect performance, what you think?



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: vdub
Date Posted: 24 March 2003 at 10:59am

Originally posted by doublelfan doublelfan wrote:

Could be with aol users running through the proxy...but then shouldn't that effect the session as well?

AOL dose that alot. one person can look like 400 people. each hit has a difrent IP




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