Active Users
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=16923
Printed Date: 18 April 2026 at 1:38am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Active Users
Posted By: rx7tt
Subject: Active Users
Date Posted: 16 October 2005 at 12:21pm
I have a lot of members browsing through a wap gateway which assigns there ip as the same for all users. The problem this presents with the active user page is when multiple people from the network access the forum at the same time they share the same line and it only displays there info.
Does anyone know of a way to add a secondary check to "active_users_inc.asp" so all will be display even with the same IP?
------------- http://www.mobilegear.biz - Mobile Gear.biz -Ringtones, games, videos, links and more...
http://www.mobilegear.biz/forum/ - Wireless Forums
|
Replies:
Posted By: dj air
Date Posted: 16 October 2005 at 3:23pm
you could add a cookie to the users system, and use that as a secondary checker
|
Posted By: dpyers
Date Posted: 16 October 2005 at 5:50pm
Do most mobile phones accept cookies?
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: dj air
Date Posted: 16 October 2005 at 6:18pm
have no idea, but there must be some way they keep track of sessions maybe,
|
Posted By: rx7tt
Date Posted: 16 October 2005 at 7:23pm
Most of the newer phones do, plus I have the login setup on the standard cookie based login so if they don't accept them they don't get in. 
As far as the cookie based check that was my first thought. For most cases I could just user their username because that is already in the array but I got stumped when it comes to "guests".
Any thoughts?
By the way thanks DP and DJ. -Scott
------------- http://www.mobilegear.biz - Mobile Gear.biz -Ringtones, games, videos, links and more...
http://www.mobilegear.biz/forum/ - Wireless Forums
|
Posted By: dj air
Date Posted: 16 October 2005 at 7:39pm
you could MOD each url to keep a tracking ID
like &ALID=random value
have that on all url's quite a big mod though
|
Posted By: rx7tt
Date Posted: 16 October 2005 at 9:40pm
What if I were to change the 'get users array position' to:
'****************************************** '*** 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 and Username If saryActiveUsers(0, intArrayPass) = strIPAddress AND saryActiveUsers(1, intArrayPass) = lngLoggedInUserID Then intActiveUserArrayPos = intArrayPass blnIPFound = True '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
This would not solve the guest problem but I could live with that. However would I be causing myself any unnecessary problems? Such as login/logout?
------------- http://www.mobilegear.biz - Mobile Gear.biz -Ringtones, games, videos, links and more...
http://www.mobilegear.biz/forum/ - Wireless Forums
|
Posted By: rx7tt
Date Posted: 06 November 2005 at 2:23pm
So after the previous code not working along with many revisions that
almost worked I incorporated your idea, dj air, about session id's and
I added it into my active users array.
The only problem is that I am getting duplicates. So I modded the
active users page to show ip/session id and in the duplicates both
number match like so:
| Guest 19
|
06/November/2005 at 12:30pm |
0 minutes |
Sony Ericsson Mobile Phone |
Sony Ericsson K750 |
193.225.154.26/706600502 |
Viewing Topic http://www.mobilegear.biz/forum/forum_posts.asp?TID=" class="smLink - Active Topics
|
| Guest 20
|
06/November/2005 at 12:29pm |
0 minutes |
Sony Ericsson Mobile Phone |
Sony Ericsson K750 |
193.225.154.26/706600502 |
Viewing Topic http://www.mobilegear.biz/forum/forum_posts.asp?TID=" class="smLink - Active Topics |
It also does this with members.
Anyone have any ideas???
Here is the revised code
'******************************************
'*** 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 and Username
If saryActiveUsers(0, intArrayPass) = strIPAddress
AND saryActiveUsers(10, intArrayPass) = strUserSessionID Then
intActiveUserArrayPos = intArrayPass
blnIPFound = True
'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
------------- http://www.mobilegear.biz - Mobile Gear.biz -Ringtones, games, videos, links and more...
http://www.mobilegear.biz/forum/ - Wireless Forums
|
|