Technology Questions

Go Back   Technology Questions > Software Questions > Internet > Internet Explorer

Internet Explorer Discuss IE7 or any other IE version.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 10-29-2009, 07:00 PM
Forward Hui
Newsgroup Contributor
 
Posts: n/a
IE8 cannot handle the domain cookie like .ust.hk

I try to use an application + web server (e.g. perl + apache) to set some
domain cookie.

In IE8 ,
If Set-Cookie: abc=ABC; path=/; domain=.ust.hk , the client cannot send the
cookie to server in next request.
If Set-Cookie: abc=ABC; path=/; domain=erpapp1.ust.hk , the client CAN send
the cookie to server in next request.
If Set-Cookie: abc=ABC; path=/; , the client CAN send the cookie to server
in next request.

For ie7 and firefox,
All 3 case, the client CAN send the cookie to server in next request.

I don't think the problem exist in domain name like ".google.com".

Does someone got the same problem in domain cookie like .foo.hk ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 10-29-2009, 07:00 PM
  #2 (permalink)  
Old 10-30-2009, 03:20 AM
Dan
Newsgroup Contributor
 
Posts: n/a
Re: IE8 cannot handle the domain cookie like .ust.hk


"Forward Hui" <ForwardHui@discussions.microsoft.com> wrote in message
news:80DA72D1-B021-4C34-8B01-334F111F542D@microsoft.com...
> I try to use an application + web server (e.g. perl + apache) to set some
> domain cookie.
>
> In IE8 ,
> If Set-Cookie: abc=ABC; path=/; domain=.ust.hk , the client cannot send
> the
> cookie to server in next request.
> If Set-Cookie: abc=ABC; path=/; domain=erpapp1.ust.hk , the client CAN
> send
> the cookie to server in next request.
> If Set-Cookie: abc=ABC; path=/; , the client CAN send the cookie to server
> in next request.
>
> For ie7 and firefox,
> All 3 case, the client CAN send the cookie to server in next request.
>
> I don't think the problem exist in domain name like ".google.com".
>
> Does someone got the same problem in domain cookie like .foo.hk ?


IE apparently uses the pre-RFC Netscape draft for cookies, which can be
found here:
http://web.archive.org/web/200802051...okie_spec.html

According to this, .ust.hk is not a valid domain - there must be at least 2
periods, and I'm assuming that a leading period is not valid. So, when you
use .ust.hk, that is equivalent to ust.hk (as IE uses tail matching for
domains), and as .hk is not one of the seven special TLDs it will be treated
as invalid. erpapp1.ust.hk is valid, and so works.

Basically, the assumption in the original Netscape drafts was that all
country specific TLDs (ie not the 7 "special" TLDs) would be subdivided, and
that domains would be allocated from those subdivisions, so cookies should
not be allowed to be set for a 2nd level domain.

google.com is fine, for instance, because COM is one of the 7 original
special TLDs.

--
Dan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
www meine domain de registrierung com domains de com domains kostenlose homepage eigene domain kostenlose domain de ms sdgvfwe@yahoo.is.com Windows XP Tablet PC Newsgroup 0 08-09-2008 04:40 PM
kostenlose top domain domain go de kostenlose domain de ms abfrage fuer com domains domain registrierung schweiz sdgvfwe@yahoo.is.com Windows XP Tablet PC Newsgroup 0 08-09-2008 01:00 PM
europa domain registrierungan domain anmeldendeine domain dedomain localdomain sichern kmwkawrt@yahoo.com Microsoft OneNote 0 05-19-2008 11:50 PM
Need to Create Domain Controller with Domain Naminig Master Roleassigned zaedi.ahmed@gmail.com Windows XP 0 12-02-2007 02:00 AM
IE sending cookie for root domain instead of subdomain MikeOtown Internet Explorer 2 08-09-2007 08:20 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 08:12 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0