ASP.State DB session expiring earlier than expected duration

Aug 19 2019 12:20 AM
We have a Windows 2008 R2 machine which has an IIS application hosted on it. The application uses forms authentication with cookies and ASP state DB for sessions.
Recently after Windows 2008 R2 upgrade we are facing issues with session timeouts. The sessions are timing out way before the expected period.
We have set session timeout to 60 minutes and Application pool Idle Time-out to 20 minutes. Can someone please provide a solution to fix this session timeout issues.
We have already tried increasing session timeout from 60 to 1140, even app pool idle time-out was changed to 1140 but no luck.
Following is our web.config entries
<authentication mode="Forms">
<forms cookieless="UseDeviceProfile" loginUrl="~/Public/Login.aspx" name="PegasusCookie" path="/" protection="Encryption" requireSSL="true" timeout="60">
</forms>
</authentication>
<sessionState mode="SQLServer" sqlConnectionString="";Initial Catalog=ASPState" cookieless="false" allowCustomSqlDatabase="true" />
 
We expect that with the above setting the session should not timeout for atleast 60 minutes.
 
Can someone help us in resolving this issue? 

Answers (3)