Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 937
Sks Avatar asked Dec 04 '22 08:12

Sks


1 Answers

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.

like image 150
EricLaw Avatar answered Jan 11 '23 23:01

EricLaw