2

我刚刚遇到了有史以来最模糊的错误。

这个字符串在从本地目录提供的每个 css/js url 之前被预先添加

(F(fZrx2F3_LKJzMBHxhfgtqZvrP_nz_3hbClIBtNVyCXXPiCJUbY7peFKF4WLGBlTcQSRW4Wpk19ymBr_HjdDzNNKynOxUX5Bf2De9fsIuBvZTEgA8HzzjD_LNTx9bYyKqGqyOm0vPWPCf8MyhBpWwbs38mFfzOTSl01XnTzxLYx9B4AXN_E9qgMlMAnJLWD_00))

仅在 IE 10 中,这里是页面标题的屏幕截图

我正在破坏 asp.net mvc 3 堆栈。

奇怪的是资源确实以这个东西作为前缀加载

4

1 回答 1

6

In your web.config make sure that you are not using cookieless forms authentication:

<authentication mode="Forms">
  <forms loginUrl="~/Account/LogOn" timeout="2880" cookieless="UseCookies" />
</authentication>

Setting cookieless="UseCookies" ensures that cookies will be used and users won't be tracked by prepending the ticket in the url. IIRC there was a bug in some older versions of .NET where IE10 User Agent wasn't known and the framework assumes that it doesn't support cookies.

And if you are using ASP.NET Session same stands true (you should force it to use cookies):

<sessionState mode="InProc" cookieless="UseCookies" />
于 2013-05-15T12:23:23.860 回答