homepage Welcome to WebmasterWorld Guest from 54.167.138.53
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Bizarre cookie issue with IE
cookie not detected on SOME subdomains
LifeinAsia




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

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?

 

Fotiman




msg:4131482
 4:51 pm on May 12, 2010 (gmt 0)

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".

coopster




msg:4131488
 4:59 pm on May 12, 2010 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved