IE ignores cookies with domain containing underscores

We made a config change recently to a pre-production system.

We made the change because users of the staging environment were getting an SSL certificate warning with a wildcard certificate.

To prevent the warning from appearing we changed

dev.stage.blahblah.com

to

adm_stage.blahblah.com

All seemed fine although the pre-production system was barely being used. A week or so later some IE (Internet Explorer) users started reporting problems.

We spent hours trying to get to the bottom of the problem. It turns out that IE ignores/drops cookies for domains with underscores in them.
We had come to this conclusion but we found the solution here.

Simply changing

adm_stage.blahblah.com

to

adm-stage.blahblah.com

corrected the issue.

Advertisements

Tags: , , ,

One Response to “IE ignores cookies with domain containing underscores”

  1. Ben Says:

    Thank you! IE was driving us crazy trying to figure out what was going on.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: