【问题标题】:ASP.NET: Form Authentication is not working with IE8ASP.NET:表单身份验证不适用于 IE8
【发布时间】:2010-02-08 13:15:41
【问题描述】:

我刚刚发现我的站点身份验证在 IE8 中不起作用。它适用于 FF、Chrome、Opera,但不适用于 IE8。我已经删除了所有的 cookie 和临时文件,但没有任何变化。经过短暂的研究,我发现 IE8 的 cookie 存在一些问题。

看看这个http://www.reachfarther.com/persistent_cookies_fail_in_ie8.html

这是我的 web.config

    <authentication mode="Forms">
        <forms defaultUrl="~/Default.aspx" loginUrl="~/Login.aspx" domain="ivan_g" name=".MY_WEB_AUTH_COOKIE" cookieless="UseCookies" slidingExpiration="true" timeout="10" protection="All"></forms>
    </authentication>

    <httpCookies domain="ivan_g" />

我想在办公室的 PC 上运行该站点,所以我认为我的域是 ivan_g。这是网址:

http://ivan_g/devsite/Login.aspx?ReturnUrl=%2fdevsite%2fDefault.aspx

你能帮我吗?

【问题讨论】:

    标签: asp.net authentication forms internet-explorer-8


    【解决方案1】:

    您的网址无效,因为它包含一个无效主机名字符的下划线。

    以下将起作用:

    http://ivang/devsite/Login.aspx?ReturnUrl=%2fdevsite%2fDefault.aspx

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-25
      • 2017-04-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-04
      • 2017-09-28
      相关资源
      最近更新 更多