How to get list of active session on server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shaikh Rais
    New Member
    • Aug 2010
    • 6

    #1

    How to get list of active session on server?

    i want list of session which is active on my server,I want to count how many active connect right now
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Check out the Global.asax file. It contains code for handling application-level events like Session_Start and Session_End.

    You can declare an application level variable in the Global.asax file that is incremented every time the Session_Start event occurs and is decremented every time the Session_End occurs.

    Please note that the Session_Start and Session_End events will only be fired if you are using InProc session.

    -Frinny

    Comment

    Working...