Reputation: 19407
Recently some users have updated to Internet Explorer 11. There now appear to be some issues with Internet Explorer not accepting cookies and switching to a cookie less authentication. This causes a NullReferenceException
.
Is there a way to force IE to accept cookies? I have full access to the PC and I do not seem to have any problems with other websites.
Upvotes: 1
Views: 2580
Reputation: 302
Well, IE11 issue seems creepy !! But anyways I think they won't feel happy until they torture us.
In my case, we had an old legacy application on .Net framework 4 (is that really old hmmm ?! LoL) which stopped working and started producing cookieless session issues and "__doPostBack is undefined" in IE11.
Tried installing updates on server for .Net Framework 4 from http://www.microsoft.com/en-us/download/details.aspx?id=39257 but did not work.
Thankfully then read this post __doPostBack is undefined in IE11 and installed .Net Framework 4.5 on server from http://www.microsoft.com/en-gb/download/details.aspx?id=30653 to resolve issue.
Upvotes: 0
Reputation: 176
This seems to be a long standing IE11 problem.
There is a settings option for the page to accept cookies, or alternately, recommendations seem to include changing your web.config to handle cookies seperately. To source Firefly's code in the above link:
<authentication mode="Forms">
<forms loginUrl="~/YourLoginUrl" timeout="2880" cookieless="UseCookies" />
</authentication>
should be enough to resolve the problem.
Upvotes: 2
Reputation: 24202
Microsoft have changed the user agent string for IE and as a result it's not longer detected as IE.
In the meantime, you can change the default behaviour by editing your web.config. Rather than setting cookie handling in the sessionState you should do it in the
<authentication>
section.<authentication mode="Forms"> <forms loginUrl="~/YourLoginUrl" timeout="2880" cookieless="UseCookies" /> </authentication>
Upvotes: 3