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

  • SEARCH
  • Home
  • 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 154583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:00:16+00:00 2026-05-11T10:00:16+00:00

On an ASP.NET site, what are some techniques that could be used to track

  • 0

On an ASP.NET site, what are some techniques that could be used to track how many users are logged in to the site at any given point in time?

So for example, I could produce a report showing something like this:

        10:00am  11:00am  12:00pm  1:00pm  2:00pm ....  3/25      25      32       45      40      37  3/26      31      38       50      57      40  3/27      28      37       46      35      20  etc.  

EDIT: No, we’re not using ASP.NET Membership provider, it uses a home-grown/hacky session based method of determining whether or not a user is in ‘logged in’ status.

  • 1 1 Answer
  • 2 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. 2026-05-11T10:00:17+00:00Added an answer on May 11, 2026 at 10:00 am

    Does the website log the user in? If it does, then you can update a ‘Last Visit’ field in the user table every time they request a new page, and then every hour, just do a SQL query that grabs everybody who has a ‘Last Visit’ timestamp within the last 15 minutes or so (assumed to currently be on the site).

    If you’re not having people log in, you could just as easily do it by IP address instead of username. With this method, though, you may run into some proxy issues (ie multiple users from the same corporate network may all come from a single IP address, so they only count as one user in your totals), but that should be minimal.

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

Sidebar

Related Questions

For some reason, any CalendarExtenders on an ASP.NET site that is being worked on
I'm maintaining an ASP.NET site where users can log on to register some set
I have an ASP.NET web site which contains some ImageButton controls that cause postbacks
I have this asp.NET web site that for some odd reason doesn't want to
I have some asp.net site that shows png images that converted from hi-res tiff
I inherited some JavaScript that I was told to integrate into our ASP.NET site.
I have a asp.net web site that contains some tables. However these are not
I have asp.net site. On many pages is used datetime to be putted from
I have some requiredFileldvalidators in my asp.net site that i want to set invisible
I have ASP.NET site. At one point postback is triggered and some data is

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.