Issue with Session and Cookie in Internet Explorer for websites containing underscore

三世轮回 提交于 2019-11-26 23:31:09

问题


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

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


回答1:


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.



来源:https://stackoverflow.com/questions/21012559/issue-with-session-and-cookie-in-internet-explorer-for-websites-containing-under

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!