I have implented some lovely forms authentication in ASP.NET MVC 3, this has been working fantastic in Chrome. Now is the time test on the worlds worst browser, Internet Explorer. I just simply went to Log in, and the page just goes back to the login in page every time I click the submit button. The credentials are correct. I have stepped through the code, I am using a RedirectToAction to a page and no errors are being flagged it just goes straight back to the login page.
I should point out I have tried the following:
- Removed webmatrix dlls and dependancies
- Removed System.Web.Helpersn
- These have both been removed from the bin, the references and the
bin_deploayableAssemblies folder in VS2010
I have also dded the following to the web.config appsettings:
<add key="enableSimpleMembership" value="false" />
<add key="autoFormsAuthentication" value="false" />
<add key="loginUrl" value="~/LoginReg/LogOn"/>
Here is my full web.config:
I should point out my login page is in a folder called: Login Reg, so the url would be /LoginReg/LogOn.
This works perfectly in chrome but for some reason doe not work in Internet Explorer.
Does anyone have any ideas hwo to fix this really annoying problem or have any useful articles
Thanks
Forms authentication creates a http cookie to maintain authentication state between requests. Make sure you have cookies enabled in IE.