We help IT Professionals succeed at work.

How to Assign Unique Value for Sessions?

GurcanK asked
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
Watch Question

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

Check this page:


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.