Here I will explain how to set session timeout in web.config,IIS and in application using asp.net manually.
<system.web>
<sessionState mode="InProc" timeout="60">
</sessionState>
</system.web>
</configuration>
By default our websites session timeout is 20 mins after that session will gets expire suppose if we want to set our custom timeout in our applications we can set it in different ways (web.config, global.asax and in IIS)
Check below methods to set session timeout in web.config, global.asax and in iis
In Web.config file we can set session timeout like as shown below
<configuration>
<system.web>
<sessionState mode="InProc" timeout="60">
</sessionState>
</system.web>
</configuration>
No comments :
Post a Comment