I am creating a .net web application and using cookie authentication to remember whether a user has been signed or not:
<authentication mode="Forms">
<forms timeout="4320" cookieless="UseCookies" loginUrl="~/account.aspx" name="test" slidingExpiration="true" />
</authentication>
But after creating, modifying web.config, or doing IIS reset, the first page I load shows that I am not signed. But if I refresh the page again, it shows that I stopped by, even if I didn’t do anything.
So it looks like I remember that I was signed, but only after loading the first page.
Is this a common thing? Am I having something incorrectly configured in web.config? Is this a problem only with the local host?
source
share