Welcome to WebmasterWorld Guest from 54.225.51.21

Forum Moderators: incrediBILL

Message Too Old, No Replies

Bizarre cookie issue with IE

cookie not detected on SOME subdomains

     
4:06 pm on May 12, 2010 (gmt 0)

Moderator from US 

WebmasterWorld Administrator lifeinasia is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 10, 2005
posts:5668
votes: 76


Just came across a cookie issue on subdomains. Everything works great in Firefox, but sometimes doesn't work in IE.

I set the cookie on example.com (or subdomain.example.com) and the cookie can be read on some subdomains, but not others. I finally detected a pattern:
- example.com works
- www.example.com works
- subdomain.example.com
- sub-domain.example.com works
- sub_domain.example.com does NOT work

Other than banning IE (heh) or redirecting sub_domain.example.com to sub-domain.example.com (ick- thousands links and indexed pages to the underscored subdomains), any possible fix?
4:51 pm on May 12, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member fotiman is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 17, 2005
posts:4996
votes: 14


It's important to note that underscores are not permitted in domain names or hostnames. Only A-Z, a-z, 0-9, and the hyphen (-) are allowed in domain names, so it would appear that you have an invalid hostname of "sub_domain".
4:59 pm on May 12, 2010 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12547
votes: 2


It's often a "gotcha" for many Windows users. Windows is non-compliant when it comes to this particular RFC(s). Check out the links from the wikipedia article regarding Restrictions on valid host names [en.wikipedia.org]. This old discussion [ops.ietf.org] on the IETF newsgroup may be helpful too.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members