Microsoft KB Archive/310676

= Internet Explorer does not set a cookie for two-letter domains =

Article ID: 310676

Article Last Modified on 1/18/2007

-

APPLIES TO


 * Microsoft Internet Explorer (Programming)

-



This article was previously published under Q310676



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
When you use Internet Explore 6, the SetCookie function does not work for two-letter domains.



CAUSE
This problem is caused by a code change in Wininet.dll. With this code change, the SpecialDomains registry key in KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0 is not checked. Wininet.dll assumes that a two-letter domain name is a top-level domain. For security reasons, Wininet.dll prevents setting cookies for such domains unless the domain is part of a top-level domain that is listed in the SpecialDomains (REG_SZ) registry key.



RESOLUTION
To resolve this problem, apply the following hotfix, and then modify the registry to enable the hotfix.

Hotfix information
To resolve this problem, obtain the latest service pack for Internet Explorer 6. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

328548 How to Obtain the Latest Internet Explorer 6 Service Pack

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.   Date         Time   Version        Size     File name ---  12-Nov-2001  18:52  6.0.2712.1100  582,656  Wininet.dll

How to modify the registry to enable this hotfix
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.  Start Registry Editor Locate and then click the following registry subkey:

 On the Edit menu, click Add Value, and then add the following registry entry:

Name: SpecialDomains

Type: REG_SZ

Value: lp. rg. ac.

Note: The value should be the two-letter domain. For example, myhost.xy.ca, where &quot;ca&quot; stands for Canada. However, you must enter the value field as &quot;ac.&quot;) Quit Registry Editor.

<div class="workaround_section">

WORKAROUND
To work around this problem, do not use a domain name with less than three letters. You may also want to use HTTP redirects that route requests for www. . to www. ..

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in Internet Explorer 6 Service Pack 1.

Keywords: kbbug kbfix kbie600presp1fix kbie600sp1fix KB310676

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.