Skip to content
Related Articles

Related Articles

ASP Session.SessionID Property
  • Last Updated : 02 Mar, 2021
GeeksforGeeks - Summer Carnival Banner

ASP Session.SessionID Property: It is a read-only property It means you can not modify this property. It returns a unique ID for each new user session that is generated by the user Every session gave a unique ID that is generated by the server when the session is created. It is stored as a cookie in the client machine. 

Syntax:

Session.SessionID  

Example Code: Below code returns a unique ID for the Session.

Javascript




<%
Response.Write(Session.SessionID)
%>

Output:

7464747834

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :