IP Check Instead of Name Check?
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=22454
Printed Date: 08 April 2026 at 6:34am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: IP Check Instead of Name Check?
Posted By: jeffdaro
Subject: IP Check Instead of Name Check?
Date 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
|
Replies:
Posted By: WebWiz-Bruce
Date 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.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: jeffdaro
Date Posted: 27 January 2007 at 1:34am
Then how about a "compound key"? User name + IP?
|
|