s

asp .net how to get the session id edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 17 September 2020 | 2945

How to get the session id in classic an asp .net application. The SessionID property is used to uniquely identify a browser with session data on the server. The SessionID value is randomly generated by ASP.NET and stored in a non-expiring session cookie in the browser. The SessionID value is then sent in a cookie with each request to the ASP.NET application.

Solution

HttpContext.Current.Session.SessionID