B
Bruno Piovan
I want to have a label in my site that shows how many users are navigating
my site, what is the best way??
I have this:
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the session is started
Application.Lock()
Application("UsersConnected") = CInt(Application("UsersConnected"))
+ 1
Application.UnLock()
End Sub
and
Application("UsersConnected") =
CInt(Application("UsersConnected")) - 1
in Session_End event
but if the user's browser block cookies the Session_Start is fired in every
request.....
so what is the best way do have this?
thanks,
Bruno
my site, what is the best way??
I have this:
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the session is started
Application.Lock()
Application("UsersConnected") = CInt(Application("UsersConnected"))
+ 1
Application.UnLock()
End Sub
and
Application("UsersConnected") =
CInt(Application("UsersConnected")) - 1
in Session_End event
but if the user's browser block cookies the Session_Start is fired in every
request.....
so what is the best way do have this?
thanks,
Bruno