How to verify active sessions of a Windows stadalone webapp

Hi!

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

Thanks!

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.