The app retains a session for a limited time after the last request. The app either sets the session timeout or uses the default value of 20 minutes . Session state is ideal for storing user data: That’s specific to a particular session.
Read moreHow long is session in MVC?
By default, the ASP.NET MVC session timeout value is 20 minutes .
Read moreHow long does ASP.NET session last?
A session ends if a user has not requested or refreshed a page in the application for a specified period. By default, this is 20 minutes .
Read moreHow long does session data last?
How long does a session last? By default, a session lasts until there’s 30 minutes of inactivity , but you can adjust this limit so a session lasts from a few seconds to several hours. Learn more about adjusting session settings.
Read more