Hi,
this is the code you need to count user online for your webapplication:
add this lines to your global.asa:
PHP Code:
Sub Application_OnStart
Application("ActiveUsers") = 0
End Sub
PHP Code:
Sub Session_OnStart
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") + 1
Application.UnLock
End Sub
PHP Code:
Sub Session_OnEnd
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") - 1
Application.UnLock
End Sub
Your code stores only the ip from the client in a session-variable and the beginning of the session.
If you want to see more information who is online, simply store this informations into application-variables.
best wishes
Bookmarks