Results 1 to 3 of 3

Thread: Count of the number of active sessions?

  1. #1

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Count of the number of active sessions?

    Is it possible to find out the number of active sessions connected to your web application? Or do I have to keep my own count by incrementing in Session_Start() and decrementing in Session_End()?

    I need to limit the number of sessions connecting at any one time...
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  2. #2
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: Count of the number of active sessions?

    I'm not sure about sessions, but if you're using the Membership class for logins, you can trap the number of users logged in with Membership.GetNumberOfUsersOnline().

  3. #3
    Lively Member CPCisHere's Avatar
    Join Date
    Nov 2006
    Posts
    108

    Re: Count of the number of active sessions?

    On the global page you can store an object in application and everytime a session begins add one the the object and when the session ends subtract one from the object.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width