store number of sessions per user RRS feed

  • Question

  • User-1141190189 posted

    i have a web application. i need for every time the user login to the system to store the opened session for this user in a dictionary.

    any help?

    Tuesday, March 24, 2015 6:40 AM


All replies

  • User753101303 posted


    You meant the session id? (as when the user login the session should have basically no data). You could store that in a global dictionary.

    I would suggest rather to tell what is the final goal (what do you do when a session ends, if this is to have an approached value of the number of online users you likely have better way to do so).

    Tuesday, March 24, 2015 7:54 AM
  • User-1151753377 posted

    Hi Sanfoor,

    Thank you for your post.

    Based on my understanding, I think you could first retrieve the sesstion from SessionStateItemCollection according to the link below.


    And then add them to Dictionnary.

    Regards & Summer

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 24, 2015 9:52 PM