By default, Session timeouts are set to expire in ASP.NET in 20 minutes. To increase the timeout or expiry you should change the timeout attribute for SessionState in the web.config file

<sessionState  timeout="40" />
 
Note that if you are using Forms authentication, the Forms timeout setting will log the user out after the set timeout period so you will also have to adjust this attribute:
 
<authentication mode="Forms">
          <forms timeout="40"/>
    </authentication>

Comments ( 0 )