J
Jack
Hello,
I am trying to add how many users online to my website. I have setup a
Global.asax and need some morehelp.
I have the following Global.asax
Public Class Global
Inherits System.Web.HttpApplication
Private Shared _CurrentNumberOfUsersOnline As Integer = 0
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
End Sub
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
End Sub
Public Shared ReadOnly Property CurrentNumberOfUsersOnline() As Integer
Get
Return _CurrentNumberOfUsersOnline
End Get
End Property
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
_CurrentNumberOfUsersOnline += 1
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
_CurrentNumberOfUsersOnline -= 1
End Sub
End Class
I need to be able to read the CurrentNumberOfUsersOnline via any page in a
web site.
Thanks,
For any help,
Jack
I am trying to add how many users online to my website. I have setup a
Global.asax and need some morehelp.
I have the following Global.asax
Public Class Global
Inherits System.Web.HttpApplication
Private Shared _CurrentNumberOfUsersOnline As Integer = 0
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
End Sub
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
End Sub
Public Shared ReadOnly Property CurrentNumberOfUsersOnline() As Integer
Get
Return _CurrentNumberOfUsersOnline
End Get
End Property
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
_CurrentNumberOfUsersOnline += 1
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
_CurrentNumberOfUsersOnline -= 1
End Sub
End Class
I need to be able to read the CurrentNumberOfUsersOnline via any page in a
web site.
Thanks,
For any help,
Jack