I have an ASP.NET MVC 3 application with the following web.config settings.
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" slidingExpiration="true" timeout="525600" path="/" />
</authentication>
My problem is on the deployed application, I get logged out automatically after 5 minutes or after closing the browser. If I check the .ASPXAUTH cookie on the browser after I am logged out, it correctly shows the expiration date.
The cookie is supposed to expire after one year and it works fine on my local machine. My guess is that the ticket is getting reset, but I do not know why.
The app is ASP.NET MVC 3, .NET Framework 4.
Any insight into this will help.