Hi,
I want to know how many users online using my website.
To accomplish this task I found the following code for the Global.asax class but I am unable to understand that where the count of users will display?
<%@ Application Language="VB" %>
<script runat="server">
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("user_sessions") = 0
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
'Here,also you can do something with database according to current session So that list user
Application.Lock()
Application("user_sessions") = CInt(Application("user_sessions")) + 1
Application.UnLock()
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Application.Lock()
Application("us ...
Go to the complete details ...