| Author |
Topic Search Topic Options
|
sam-
Newbie
Joined: 08 May 2003
Location: Syrian Arab Republic
Status: Offline
Points: 36
|
Post Options
Thanks(0)
Quote Reply
Topic: Problem with active users 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. ?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
PrimeraRacer
Groupie
Joined: 29 January 2003
Location: United Kingdom
Status: Offline
Points: 83
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
sam-
Newbie
Joined: 08 May 2003
Location: Syrian Arab Republic
Status: Offline
Points: 36
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2003 at 4:12pm |
waiting you PrimeraRacer , Cheers
|
 |
MadDog
Mod Builder Group
Joined: 01 January 2002
Status: Offline
Points: 3008
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2003 at 4:28pm |
|
borg, why run the check off the ip and not the author id?
|
|
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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
|
|
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 May 2003 at 2:48am |
|
Still it will never be 100% acurate.
|
|
|
 |
sam-
Newbie
Joined: 08 May 2003
Location: Syrian Arab Republic
Status: Offline
Points: 36
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 May 2003 at 6:39am |
|
Yes , It still the same , I belive its not the same prob with php, right ?
|
 |