asp .net how to get the session id Edit

Murugan Andezuthu Dharmaratnam | 17 September 2020 | 794

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