I need to find using asp.net,
How many users are browsing my website at any particular instance of time.
How can I do that?
I need to find using asp.net,
How many users are browsing my website at any particular instance of time.
How can I do that?
You could use an application variable and increment it during *Session_Start* in the Global.asax. Also this variable needs to be decremented when the *Session_End* event is fired.
If you are using the ASP.NET Membership Provider - Membership.GetNumberOfUsersOnline()
Or you could try one of the ASP.NET performance counters. State Server Sessions Active The number of currently active user sessions. This counter is available only on the computer where the state server service (aspnet_state) is running.