ASP.NET MVC > Session management

Time out for session object in ASP.NET MVC

How to specify time out for the session object?


To set the timeout period for the session (after which the session data expires or deleted from the server memory), we set Timeout property of the session object.

Session.Timeout = 30; // time out in minutes

Data stored in the Session for this specific user, gets expired after 30 minutes.

 Views: 16473 | Post Order: 95



Write for us






Hosting Recommendations