Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 627851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:34:22+00:00 2026-05-13T19:34:22+00:00

How do I retrieve list of Active users (with account ids) in IIS 6.

  • 0

How do I retrieve list of Active users (with account ids) in IIS 6.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:34:22+00:00Added an answer on May 13, 2026 at 7:34 pm

    Providing that you mean active VISITORS on your site rather than active USERS, and the fact that I see that you’re using asp.net… you could try the code below.

    GLOBAL.ASAX

     Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
    'Set the initial CurrentNumberOfUsers count to zero
    Application("CurrentNumberOfUsers") = 0
     End Sub
    
     Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
    ' Add the newest user to the CurrentNumberOfUsers count
    Application("CurrentNumberOfUsers") += 1
     End Sub
    
     Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
    ' Remove the last user from the CurrentNumberOfUsers count
    Application("CurrentNumberOfUsers") -= 1
     End Sub
    

    and then to retrieve that in your page, you would use something like

    label1.text = Application("CurrentNumberOfUsers")
    

    Now if you are trying to get the number of registerd users, you could try something like this.

    Membership.GetNumberOfUsersOnline()
    

    And if you need the total number of users on your site, you can use

    Membership.GetAllUsers.Count()
    

    As for the “With Account ID’s” part… mmmm, not sure… prolly have to loop through each active account and pull it’s ID.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to get a list of Active Directory users along with the
I am trying to retrieve a list of object trough active record with no
I'm using jquery $.getJSON to retrieve list of cities. Everything works fine, but I'm
I am trying to figure out a query to retrieve list of categories that
I retrieve a list of ObjectId and I want to retrieve all object in
I want to retrieve a list of people's names from a queue and, for
I try to retrieve a list of the attribute values of the children of
I'm using NHibernate to retrieve a list from the database based on some criteria.
While it is clear we cannot retrieve a list of installed applications on iOS,
I made a query that retrieve a list of items from a database: CREATE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.