Hi Sam,
The main reason of session getting expired is that Application Pool is restarting. Since Session State Mode by default of a web application is InProc.
You can solve this problem using following methods:
- Use Other Session State Mode like StateServer or SqlServer.
- Use cookies for Session State management.
For Session State Mode Use following section in web.config
<configuration>
<system.web>
<sessionState mode="InProc"
cookieless="false"
timeout="20"/>
</system.web>
</configuration>
Posted On:
26-Dec-2015 00:34