Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Online users and same IP problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Online users and same IP problem

 Post Reply Post Reply
Author
degergio View Drop Down
Newbie
Newbie


Joined: 09 July 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote degergio Quote  Post ReplyReply Direct Link To This Post Topic: Online users and same IP problem
    Posted: 27 July 2006 at 1:53am
hi all,
 In my country (Turkey) there are many internet cafe users and flatmates which use same internet connection (so same IP) to surf internet.
  My problem is with showing "online users".
 
When 2 users login to my forum from same IP, only one of them is being showed as "online members", but the other is also being showed as "online guests". WWF sees them as double entry and doesn't show both of them..
 
I have checked the functions/functions_common.asp and found that code and i think answer of my problem is hidden in here:
 

'Else check a logged in member is not a double entry
  ElseIf saryActiveUsers(1, intArrayPass) = lngLoggedInUserID
AND saryActiveUsers(1, intArrayPass) <> 2 Then
   intActiveUsersDblArrayPos = intArrayPass
  End If
 Next
 
 
I really don't know what happens if i delete these codes or what to do to solve my problem..
I am looking forward to hear some bright ideas.
Thanks..
Back to Top
degergio View Drop Down
Newbie
Newbie


Joined: 09 July 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote degergio Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2006 at 1:22pm

boRg, won't you reply my question? :(

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: 29 July 2006 at 4:44pm
If you do a search this has been covered many times before with a lengthy description of how the active topics works and why it can never be 100% accurate given that HTTP is stateless protocol.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2006 at 10:06am

Can't we have it so that if two different users are logged on with the same IP at the same time, it at least shows both users logged on in the active users list?  Since they are logged in you can track their usage.  I can understand about not being able to track non-logged in users, but tracking logged in users shouldn't be a problem since the ASP script knows who is logged in and what they are viewing.

I have a similar problem where I am using Web Wiz Forums for a company's website in which employees will be logged in.  All the employees will have the same IP address.
 
How about doing something like this:
  1. If user is logged in and accesses a page, add them to the active user list with username and IP address recorded.
     
  2. If user is logged in and listed on the active user list already, update the older listing for the username (even if a different IP) to show the current location and timestamp.  (If they are logged in with the same username but a different IP, then they are probably using AOL or another ISP that changes their IP address while online.)
     
  3. If a user is not logged on, add them to the active users list as guest with their IP address recorded.
     
  4. When another guest accesses a page, see if that IP address is already listed in the active user list, and if so assume that they are the same user (even if not true, but there is no way to know otherwise).  Update the old entry for the Guest listing with the same IP address to show the current location and timestamp.
     
  5. If a guest and a logged in user both access the site from the same IP address, list both the guest and the logged in user(s) in the list as being active users.  (By following 1 thru 4 above, this happens automatically.)
That would probably work better because it would list all the logged in users, while making a best guess at how many non-logged in users there are.  It'd be a more accurate representation of who is online.
 
And even if two users are using the same computer, it still is more accurate since one had to log off before the other can use it, and as such, both users should be listed in the active user list (although the one who logged off will have an older timestamp and will roll of the list shortly just like any other user who logs off).
 
 
 
P.S. I searched the forum for "active users" and out of 18 pages of results, none talked about the issue.  Not sure why since I know this discussion has come up before.  Perhaps the discussions are too old to appear in the search?

Edited by wistex - 31 July 2006 at 10:10am
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: 31 July 2006 at 11:08am
Try changing the default search option to search posts older than 6 months, and also try searching the version 7 support forum.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2006 at 12:35pm
I searched all forums.  It must be the older than 6 months thing and the fact that 750 posts on the topic are a bit much to wade through (although I did wade through 177 of them in the results I did get).  I was going to search "active users IP" to narrow my search, but it wouldn't let me use the word "IP" since it is too short. :(
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2006 at 12:49pm
Hey wiztex, I've been dealing with this issue too because my main customer (currently) has a large internal network and all of them come up as one user. If I look at the sessions, I could have 20 active sessions. 
 
My guess is you'll have to write something on your own to supplement the existing system. I've not done it (yet) because I was waiting for V8. 
Back to Top
 Post Reply Post Reply

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.