本文介绍了与Asp.Net 4.0的Internet Explorer 11届问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个奇怪的问题,我已经在asp.net 4.0开发了一个网站,它工作正常,在所有的浏览器,因为我处理会议以及让用户登录到使用该网站。

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.

在Internet Explorer 11,当你去的网站网址它附加在URL字符串怪

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.

我不知道为什么会这样,因为我已经测试了这个本地它工作正常,但是当文件被上传到服务器,并打开从IE11它创建这个问题的链接。

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.

这是url我得到

http://wwww.someurl.com/FM2/(S(iyrnv2rrbds5uisv2qqc3rjy))/login.aspx

感谢

推荐答案

有似乎是新的用户代理字符串的问题(大部分网站不承认新的IE),因此MVC不默认启用的cookies

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

在你的窗体身份验证元素添加Cookie的属性如下强制使用的认证令牌的Cookie

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>

来源:http://botsikas.blogspot.co.uk/2013/09/ie11-and-aspnet-session-cookies.html

这篇关于与Asp.Net 4.0的Internet Explorer 11届问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 01:15