What is Session in ASP.Net?

Session in ASP.Net

Session is a length /period of time that a particular browser instance spends accessing a website.

Session Object -The session object is used to persist data across a user session during the user’s visit to a website. It is almost same as the Context object. When we use Response.Redirect, it causes the Context object to go away, so rather the Session object is used in such a scenario. Session object uses more of server memory than a context object. Example code below shows how to use Session object.