Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

IE8 cannot handle the domain cookie like .ust.hk

microsoft.public.internetexplorer.general






Speedup My PC
Reply
  #1 (permalink)  
Old 10-30-2009
Forward Hui
 

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 ?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-30-2009
Dan
 

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

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

vB 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
IE7 can't handle more than ONE TAB! husky13 microsoft.public.internetexplorer.general 1 03-21-2009 20:10
domain user account UAC without domain admin id/password?? tom12010 microsoft.public.windows.vista.security 0 01-28-2009 21:57
How to Handle XML Data in PHP Steve General Technology News 0 10-03-2008 00:50
Reuse domain profile user settings in new domain Jeff Donkersgoed microsoft.public.windows.vista.administration accounts passwords 0 07-25-2008 15:11
Domain Appraisal Scam Targets Domain Name Owners, (Sat, Mar 24th) Steve Security News 0 03-24-2007 22:46




All times are GMT +1. The time now is 14:52.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120