I have forms authentication and url rewriting. Below is the config for it:
<forms name="login" path="/" loginUrl="~/log-in" protection="All" timeout="999999" slidingExpiration="true" cookieless="UseCookies"/>
When I login, only the root of the site think i'm logged in. When navigating to any other page it think's i'm logged out. If I manually type in the url (the actual url, not rewritten), it think i'm logged in. Why is it not working with any rewritten urls?
I just did some more tests. This only occurs when running through II7. When I run the site through the .net development server, it works fine.
Below are config settings for it:
<system.webServer>
<modules>
<add name="ScriptModule" preCond ...
Go to the complete details ...