I am experiencing a strange problem i have developed a website in asp.net 4.0, it works fine on all the browsers as i am handling sessions as well so user has to login to use the site.
On Internet Explorer 11 when you go the the website url it appends strange string in the url.
When you logs in to the website, and click an link inside it logs you out.
I am not sure why this is happening, as i have tested this on locally it works fine, but when the files are uploaded to server and you open the link from IE11 it creates this problem.
Anyone could help me with this, please.
This is the url i get
http://wwww.someurl.com/FM2/(S(iyrnv2rrbds5uisv2qqc3rjy))/login.aspx
Thanks
In Internet Explorer, open 'File' in Menu bar and select New Session. In Internet Explorer, open 'File' in Menu bar and select New Window.
For x86 systems or for 64-bit processes on x64 systems: Go to the HKLM\SOFTWARE\MICROSOFT\. NETFramework registry key and change the EnableIEHosting value to 1. For 32-bit processes on x64 systems: Go to the HKLM\SOFTWARE\Wow6432Node\MICROSOFT\. NETFramework registry key and change the EnableIEHosting value to 1.
To check local and session storage in Internet Explorer 11 (IE11) and Microsoft Edge you must press F12 button on your keyboard, and switch tab to “CONSOLE”. Here you must write only text “sessionStorage” or “localStorage” and data would be displayed.
There seems to be an issue with the new user agent string (most sites don’t recognize the new IE) and thus MVC doesn’t enable cookies by default
Force the use of cookies in the authentication token by adding the cookieless attribute in your forms authentication element as follows
<authentication mode="Forms">
<forms loginUrl="~/YourLoginUrl" timeout="2880" cookieless="UseCookies" />
</authentication>
Source: http://botsikas.blogspot.co.uk/2013/09/ie11-and-aspnet-session-cookies.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With