What is the best way??

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top