C
Chris
Hi,
i want to get the amount of visitors online.
I did this in global.asax
I tested it by opening several browser sessions.
The amount increases, but never decreases, when i close some browsers.
I have heard of 'session.abandon' but have no idea where to put it (not in
Sub Session_End because it's not fired)
I don't want to use the session.timeout.
My web.config doesn't contain any session state of any kind.
Thanks for hints
Chris
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("visitors") = 0
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("visitors") = Application("visitors") + 1
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Application("visitors") = Application("visitors") - 1
End Sub
i want to get the amount of visitors online.
I did this in global.asax
I tested it by opening several browser sessions.
The amount increases, but never decreases, when i close some browsers.
I have heard of 'session.abandon' but have no idea where to put it (not in
Sub Session_End because it's not fired)
I don't want to use the session.timeout.
My web.config doesn't contain any session state of any kind.
Thanks for hints
Chris
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("visitors") = 0
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("visitors") = Application("visitors") + 1
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Application("visitors") = Application("visitors") - 1
End Sub