Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internet Explorer xx.yy website issue

If you have site following this pattern(http://xx.yy/ ) internet explorer does not hold any cookies . Any solution ?

For example:

  • http://co.uk
  • http://gc.ca
  • http://on.ca
like image 240
Mite Mitreski Avatar asked Jul 27 '09 17:07

Mite Mitreski


2 Answers

This is essentially by-design. The workaround is to put a "www" before xx.yy.

http://blogs.msdn.com/ieinternals/archive/2009/09/19/Private-Domain-Names-and-Public-Suffixes-in-Internet-Explorer.aspx

http://support.microsoft.com/kb/310676

http://crisp.tweakblogs.net/blog/ie-and-2-letter-domain-names.html

like image 111
EricLaw Avatar answered Nov 06 '22 09:11

EricLaw


Hmm.

So this interested me, and Eric Law is correct, however I have another work around that he does not seem to have listed.

Instead of:

http://aa.mk/

Make your url

http://aa.mk./

Note '.' as suffix.

It will go to the same website, and, as far as I've just tested, you can set cookies on this domain.

I verified in IE6 using the JavaScript cookie-setting code here passing the domain as "aa.mk.".

like image 44
Noon Silk Avatar answered Nov 06 '22 09:11

Noon Silk