I'am using Intelligencia rewriter for ASP.NET. Now I added forms authentication to the project and for some reason on the seo friendly pages (.html) the Request.IsAuthenticated property is always false. I can see that the cookie is created fine with fiddler. When i visit any other .aspx page I can see that the same property is true. Obviously this is related to the rewriter, however I could not find any solution for it at all.
Request.IsAuthenticated returns false when using Intelligencia rewriter for ASP.NET
1.3k Views Asked by vikasde At
2
There are 2 best solutions below
0

I spent quite some time on this reading all the solutions out there on the Internet, but in my case it finally boiled down to being a missing web.config setting :
<authentication mode="Forms">
<forms loginUrl="~/User/LogIn" timeout="2880" />
</authentication>
If there's no authentication specified, no authentication will be used although you might have a auth cookie present.
Check out Troubleshooting Forms Authentication and the FormsAuthLogger.
For reference, Microsoft has a detailed article on what are the moving parts and processes.