Currently Logged on users

Discussion in 'ASP .Net' started by gover, Jun 8, 2007.

  1. gover

    gover Guest

    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
    gover, Jun 8, 2007
    #1
    1. Advertising

  2. 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
    >
    >
    >
    =?Utf-8?B?U2l2YSBN?=, Jun 8, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?ZXN3YW5zb24=?=

    getting currently logged in user asp.net c sharp class

    =?Utf-8?B?ZXN3YW5zb24=?=, Feb 28, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    5,757
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 28, 2006
  2. james
    Replies:
    2
    Views:
    755
    William Brogden
    Apr 8, 2004
  3. iclinux
    Replies:
    0
    Views:
    378
    iclinux
    Mar 14, 2006
  4. Benedictum

    Determine users currently logged in

    Benedictum, Apr 13, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    445
    Benedictum
    Apr 17, 2008
  5. Marcin Zmyslowski

    Currently logged users

    Marcin Zmyslowski, Mar 3, 2005, in forum: ASP General
    Replies:
    0
    Views:
    131
    Marcin Zmyslowski
    Mar 3, 2005
Loading...

Share This Page