I am developing an Internet application with ASP.NET MVC4 using VS 2012, IIS 7.5. I use Autodesk Forms for the same. The settings in my web configuration are as follows.
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="30" name="userInfo" slidingExpiration="true" enableCrossAppRedirects="false" protection="All" >
<credentials passwordFormat="Clear"/>
</forms>
</authentication>
But the Idle Timeout (minutes) parameter in IIS is 20. When I update my application after 20 + minutes, I get an error when one of my session objects is null. But if I update my application after 30 minutes, it works fine, which redirects me to the login page. After entering the credentials, I correctly moved to the corresponding page.
I don’t understand why I get an error message after 20 minutes! as far as I know). Please, help.
thank
source
share