Last post Mar 24, 2015 09:52 PM by Summer - MSFT
Mar 24, 2015 06:40 AM|Sanfoor|LINK
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.
Mar 24, 2015 07:54 AM|PatriceSc|LINK
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).
Mar 24, 2015 09:52 PM|Summer - MSFT|LINK
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