对于包含下划线的网站,Internet Explorer 中的 Session 和 Cookie 问题 [英] Issue with Session and Cookie in Internet Explorer for websites containing underscore

查看:29
本文介绍了对于包含下划线的网站,Internet Explorer 中的 Session 和 Cookie 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Recently we have created few websites with underscore (contains under website name). --------> example (xyz_mnp.com)

问题是:每次页面请求 cookie 和会话重置.它在其他浏览器上运行良好,但在 IE 中遇到问题

Issue is: Every time a page request cookie and session resets. It works fine with other browser but facing issue in IE

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

I search lots of thread but didn't find any solution yet.

任何帮助家伙.谢谢

推荐答案

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

Internet Explorer rejects all cookies with an underscore in the domain, because underscores are not allowed in DNS hostnames. This is a well-known limitation in IE, documented in http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx

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

The workaround is to remove the underscore from the hostname.

这篇关于对于包含下划线的网站,Internet Explorer 中的 Session 和 Cookie 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆