asp.net total number of sessions open for an application

  • Thread starter Thread starter Maziar Aflatoun
  • Start date Start date
M

Maziar Aflatoun

Hi,

Is it possible using asp.net to see how many people are using a certain web
application. For example I have an application where 20+ users can log in
and use. Is it possible using C#.net to see how many sessions are open for
a particular application?

Thank you
Maziar Aflatoun
 
There is no automatic way to get the session count. You must build such a
mechanism manually by utilizing the Session_Start and Session_End events in
your Global.asax. In there you can increment and decrement a counter, array
or collection of some sort to keep track of the sessions.
 
Back
Top