【问题标题】:Issue with Session and Cookie in Internet Explorer for websites containing underscoreInternet Explorer 中包含下划线的网站的会话和 Cookie 问题
【发布时间】:2014-01-27 13:14:19
【问题描述】:

最近我们创建了几个带有下划线的网站(包含在网站名称下)。 --------> 示例(xyz_mnp.com)

问题是:每次页面请求cookie和会话重置。 它适用于其他浏览器,但在 IE 中遇到问题

我搜索了很多线程,但还没有找到任何解决方案。

任何帮助家伙。 谢谢

【问题讨论】:

  • 网站名称中的下划线不应影响 cookie。 Cookie 设置在域级别。你怎么知道它会重置 IE 中的 cookie?
  • 有很多线程建议和我的个人经验 IE 忽略域包含下划线的 cookie

标签: internet-explorer session cookies session-cookies


【解决方案1】:

Internet Explorer 拒绝域中所有带有下划线的 cookie,因为 DNS 主机名中不允许使用下划线。这是 IE 中众所周知的限制,记录在 http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx

解决方法是从主机名中删除下划线。

【讨论】:

    猜你喜欢
    • 2010-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-07
    • 1970-01-01
    • 1970-01-01
    • 2011-09-11
    相关资源
    最近更新 更多