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