Internet Explorer中针对包含下划线的网站的会话和Cookie问题 [英] Issue with Session and Cookie in Internet Explorer for websites containing underscore
问题描述
最近我们创建了几个带下划线的网站(包含网站名称)。
--------> example(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.
任何帮助家伙。
感谢
Any help guys. Thanks
推荐答案
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中针对包含下划线的网站的会话和Cookie问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!