Sessions ASP.Net Tutorial

You can specify the Session timeout in the web configuration file or you can set the Session timeout programmatically. 
The following web configuration file changes the Session timeout value to 60 (1 hour).
File: Web.Config


  


You can modify the Session timeout value programmatically with the Timeout property of the Session object. 
Session.Timeout = 60;