Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - IP Check Instead of Name Check?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

IP Check Instead of Name Check?

 Post Reply Post Reply
Author
jeffdaro View Drop Down
Groupie
Groupie


Joined: 15 April 2005
Status: Offline
Points: 171
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffdaro Quote  Post ReplyReply Direct Link To This Post Topic: IP Check Instead of Name Check?
    Posted: 19 January 2007 at 6:01pm
In the activeUsers function in functions_common.asp, when a user is to be added to the array, the IP address is checked to see if the user is already in the array.

This is causing problems on my forum, because some of my users are behind a firewall, so the first one to login, is the only one shown in the active users list.

Is there any reason, that anyone can see that making this change would be bad?

Use: If saryActiveUsers(2, intArrayPass) = strLoggedInUsername Then
Instead Of: If saryActiveUsers(0, intArrayPass) = strIPAddress Then

       


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: 20 January 2007 at 10:38am
This wouldn't work because some users such as guests, search engine robots, etc. are not logged in, so the only way to track all users is by using IP addresses. Cookies are no good as often you will find cookies don't work or are disabled.

For future version are looking at replacing the present active users with an AJAX version built on top of the session tracking system. This should be allot more accurate.
Back to Top
jeffdaro View Drop Down
Groupie
Groupie


Joined: 15 April 2005
Status: Offline
Points: 171
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffdaro Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2007 at 1:34am
Then how about a "compound key"? User name + IP?

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.