Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of open sessions

Status
Not open for further replies.

seeyou

Programmer
Oct 11, 2002
12
PT
Hi.

How can I know how many sessions are open (users connected) in an ASP.NET application?

Thanks in advance,
--- seeyou ---
 
Hi
I've had a look and I don't think the application or session objects have a property for this, and there does not seem to be a Server Variable for it either.

One way to do it would be to have an application state variable which you increment in global.asax when the Session_Start event fires and decrement when the Session_End event fires.

Hope this helps
Mark Mark [openup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top