In this article we learn how to increase session timeout in asp.net c#

Add this in web.config in system.web:

<sessionState timeout = "60" mode = "InProc" />


//Set timeout in minutes.