Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Problem seeing online people
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem seeing online people

 Post Reply Post Reply Page  <12
Author
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: 24 March 2005 at 5:39am
Most people use the forum in the conventional way on the Internet where most users have different IP addresses.

The only other way to track site visitors is to use sessions, but these only work if the user has cookies enabled.

Because HTTP is a stateless protocol it is impossible to track users accurately as each page, image, etc. is a separate and new connection, once the page, image, etc. is downloaded to the web browser connection is dropped. The server has no way of knowing if the user is still viewing the site, left the site, or if there next request is even from the same user.

To over come this problem tricks has to be used to track visitors like using cookies or trying to track users by their IP address. Both of which have their faults.

Your only solution would be to convert the system to use sessions to track the users.
Back to Top
Dr.J View Drop Down
Newbie
Newbie
Avatar

Joined: 18 March 2005
Location: Netherlands
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dr.J Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2005 at 6:46am
Originally posted by -boRg- -boRg- wrote:

Most people use the forum in the conventional way on the Internet where most users have different IP addresses.

The only other way to track site visitors is to use sessions, but these only work if the user has cookies enabled.
 
The way we fixed it, is as followed:
 

Changes in active_users_inc.asp

'******************************************
'***        Get users array position ***
'******************************************

 'Iterate through the array to see if the user is already in the array

For intArrayPass = 1 To UBound(saryActiveUsers, 2)

             'Check the IP address

            '***remove Henk Boons 18 mrt 2005 same IPadres if forum behing proxy

            'If saryActiveUsers(0, intArrayPass) = strIPAddress Then

             '           intActiveUserArrayPos = intArrayPass
            '           blnIPFound = True

            'Else check a logged in member is not a double entry
            'ElseIf

‘check if user already in ActiveUsers array

            If saryActiveUsers(1, intArrayPass) = lngLoggedInUserID then

                &nbs p;       intActiveUserArrayPos = intArrayPass

                &nbs p;       blnIPFound = True

            end if

            'if  saryActiveUsers(1, intArrayPass) <> 2 Then

            '           intActiveUsersDblArrayPos = intArrayPass

            'End If

Next


Changes in log_off_user.asp

 

'Clear the forum cookie on the users system so the user is no longer logged in

Response.Cookies(strCookieName) = ""

Response.Cookies(strCookieName)("UID") = strLoggedInUsername & "LOGGED-OFF"

Response.Cookies("TS") = ""

Response.Cookies("LPM") = ""

Session("ViRead") = ""

saryActiveUsers = Application("saryAppActiveUsers")

saryActiveUsers(4, intActiveUserArrayPos) = CDbl(Now()- 7.000000167871E-03) ‘tag date so user expires

'Update the application level variable holding the active

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: 24 March 2005 at 6:51am
The problem with the changes you have made is that Guests (un-logged in users), will all be seen as 1 user.

So if you have 10 un-logged in users on your forum they will only be seen as 1 user.


Edited by -boRg- - 24 March 2005 at 6:52am
Back to Top
Dr.J View Drop Down
Newbie
Newbie
Avatar

Joined: 18 March 2005
Location: Netherlands
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dr.J Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2005 at 7:11am
Originally posted by -boRg- -boRg- wrote:

The problem with the changes you have made is that Guests (un-logged in users), will all be seen as 1 user.

So if you have 10 un-logged in users on your forum they will only be seen as 1 user.
You're right.. The only thing is that our forum is private. That means that every user HAS to register in order to use the forum. In our case this is acceptable.
 
Thanks for your help in determining the problem!
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.