Windows Vista Tips

Windows Vista Tips > Newsgroups > Internet Explorer > IE8 cannot handle the domain cookie like .ust.hk

Reply
Thread Tools Display Modes

IE8 cannot handle the domain cookie like .ust.hk

 
 
Forward Hui
Guest
Posts: n/a

 
      10-30-2009
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 ?
 
Reply With Quote
 
 
 
 
Dan
Guest
Posts: n/a

 
      10-30-2009

"Forward Hui" <> wrote in message
news:80DA72D1-B021-4C34-8B01-...
> 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

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Incorrect server name Ace Fekay [MCT] Windows Server 4 10-28-2009 02:17 PM
Re: Migrate from one 2003 Domain to another 2003 Domain Meinolf Weber [MVP-DS] Server Migration 0 10-22-2009 07:35 AM
Re: Migrate from one 2003 Domain to another 2003 Domain Meinolf Weber [MVP-DS] Server Migration 1 10-21-2009 08:54 PM
Long pause before log in when not connected to domain - Vista Busi Cory Windows Vista Performance 0 11-04-2007 03:26 AM
DOMAIN LOGIN: Authentification server unavailable in remote location Louis Windows Vista Administration 0 02-21-2007 01:45 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59