How to verify active sessions of a Windows stadalone webapp


I would like to know how to check if a running web app has users connected to it (actually using it).


WebApplication.SessionCount has the number of active sessions.

webapplication.sessioncount should hold the number of active sessions. You could have a timer with a method to send the number of active sessions to console, for example.

Thanks! That should do it!

No need for a timer; Session.Open and Session.Close suffice.