By default, Session timeouts are 20 minutes in ASP.NET. To increase the timeout or expiry you have to change the timeout attribute for SessionState in the web.config file
<sessionstate timeout="40" />
If you are using Forms authentication, You have to adjust this attribute:
<authentication mode="Forms">
<forms timeout="40" />
</authentication>