Session - track each user request. Therefore, every time a web page is sent back, the asp.net runtime knows which user is receiving the request. Now, since HTTP is a stateless protocol, that is, each request from the same user is like a new request to it. Thus, to maintain a session, Asp.Net has session variables.
Session variables. Session variables are server-side supported variables at asp.net runtime. Each user is identified by a unique SessioID. This session is stored in a cookie (if the browser supports cookies) on the client side after the user's first request. when a client sends back the page, this cookie is available in the request header. So, now the server knows that this user request comes from which user. In addition, you can also store user information in session variables, which will be available on the server side.
source share