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

  New Posts New Posts RSS Feed - Active Users
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Active Users

 Post Reply Post Reply
Author
rx7tt View Drop Down
Groupie
Groupie


Joined: 25 October 2004
Location: United States
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote rx7tt Quote  Post ReplyReply Direct Link To This Post Topic: Active Users
    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?
Mobile Gear.biz-Ringtones, games, videos, links and more...
Wireless Forums
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2005 at 3:23pm
you could add a cookie to the users system, and use that as a secondary checker


Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2005 at 6:18pm
have no idea, but there must be some way they keep track of sessions maybe,


Back to Top
rx7tt View Drop Down
Groupie
Groupie


Joined: 25 October 2004
Location: United States
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote rx7tt Quote  Post ReplyReply Direct Link To This Post 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. Smile

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
Mobile Gear.biz-Ringtones, games, videos, links and more...
Wireless Forums
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
rx7tt View Drop Down
Groupie
Groupie


Joined: 25 October 2004
Location: United States
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote rx7tt Quote  Post ReplyReply Direct Link To This Post 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?
Mobile Gear.biz-Ringtones, games, videos, links and more...
Wireless Forums
Back to Top
rx7tt View Drop Down
Groupie
Groupie


Joined: 25 October 2004
Location: United States
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote rx7tt Quote  Post ReplyReply Direct Link To This Post 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 
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 
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

Mobile Gear.biz-Ringtones, games, videos, links and more...
Wireless Forums
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.