We help IT Professionals succeed at work.

How to Assign Unique Value for Sessions?

GurcanK
GurcanK asked
on
Dear Experts,

Could you please help me for the following?

1-How can I use a unique value (identifier) for each session in order to separately use, manage and identify them?

2-Is there any limit for the size of data in session dictionary?

Best Regards
Comment
Watch Question

Commented:
What you want is probably "HttpSessionState.SessionID Property".


Check this page:

https://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.sessionid%28v=vs.110%29.aspx

2. The worker process uses physical memory to keep the session. YOu can increase memory for your application pool, but if you have to do that you are uauslly already in trouble, might consider redesigning your application in this case.