By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Currently Logged on users

P: n/a
Hello,
Is ther an API I can use to get a list of / or the number of users
currently logged on to an iis6 or iis 7 web app. I Know IIS keeps a seesion
for each user. how can i get an enumeration of those sessions? I realize
that the session m,ay have timed out, but if i'm trying to redeploy an app
to iis , it would be nice if i coul verify that the number of active session
was xero before pushing out any changes, essentially killing all active
sessions.
Russ
Jun 8 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
One approach is to have an application-level counter (stored in Application
state) that will be incremented in the Session_Start event and the same will
be decremented in the Session_End event. Both the session events can be
hooked from global.asax.

"gover" wrote:
Hello,
Is ther an API I can use to get a list of / or the number of users
currently logged on to an iis6 or iis 7 web app. I Know IIS keeps a seesion
for each user. how can i get an enumeration of those sessions? I realize
that the session m,ay have timed out, but if i'm trying to redeploy an app
to iis , it would be nice if i coul verify that the number of active session
was xero before pushing out any changes, essentially killing all active
sessions.
Russ
Jun 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.