Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem with active users
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with active users

 Post Reply Post Reply Page  12>
Author
sam- View Drop Down
Newbie
Newbie
Avatar

Joined: 08 May 2003
Location: Syrian Arab Republic
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote sam- Quote  Post ReplyReply Direct Link To This Post 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. ?

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
PrimeraRacer View Drop Down
Groupie
Groupie


Joined: 29 January 2003
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrimeraRacer Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
sam- View Drop Down
Newbie
Newbie
Avatar

Joined: 08 May 2003
Location: Syrian Arab Republic
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote sam- Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2003 at 4:12pm

waiting you PrimeraRacer ,
Cheers

Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2003 at 4:28pm
borg, why run the check off the ip and not the author id?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2003 at 2:48am
Still it will never be 100% acurate.
Back to Top
sam- View Drop Down
Newbie
Newbie
Avatar

Joined: 08 May 2003
Location: Syrian Arab Republic
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote sam- Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2003 at 6:39am
Yes , It still the same , I belive its not the same prob with php, right ?
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.