I use forms authentication in web application. I have this in my config file. I use IIS 7
<forms loginUrl="~/Account/Login.aspx" cookieless="UseCookies" protection="All"
name=".ASPXAUTH" timeout="60" requireSSL="false" slidingExpiration="true"
enableCrossAppRedirects="false" defaultUrl="~/Dashboard.aspx" />
When i enter my site’s url in the address bar it redirects me to
Account/Login.aspx?ReturnUrl=%2f instead of Account/Login.aspx
I don’t know what the reason is , but when i use IIS 5.1 everything works fine.
Please help me.
Forms authentication redirection puts the source URL into the login.aspx request as a parameter so it can return the user the to the page they entered.
%2f=/, e.g. the root of your site. If you had entered thewww.example.com/coolstuff.aspxyourReturnUrlparameter would be ‘%2fcoolstuff.aspx’.Nothing is wrong, that is how forms authentication is suppose to work.