Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Cookies Are Not Saved If the Host Name Is Invalid


View products that this article applies to.

Symptoms

After you install Internet Explorer 5.01 Service Pack 1 (SP1) or later including (Internet Explorer 6, 7, 8, 9), cookies are not saved when you connect to a site such as:�
http://test_server.company.com

↑ Back to the top


Cause

You cannot connect to the site because of a security enhancement that is documented in the following Microsoft Knowledge Base article:
258430 Web Site May Retrieve Cookies from Your Computer
This change strictly enforces the domain name restrictions as defined in the Request for Comments (RFC) documents to prevent malicious Web sites from accessing cookies from another site. Cookies are also rejected if the domain that is specified by the cookie header does not contain at least one embedded period or if the domain is not a suffix of the document's domain.

Cookies are accepted if the path that is specified in the set cookie header is a prefix of the document's path and the domain that is specified in the set cookie header.

Cookies are also rejected if the expire time has passed.

↑ Back to the top


Resolution

If your host name contains an invalid character such as "_" you need to gain access to the site by using the IP address instead of the name, or change the host name to a valid name.

When a cookie is set with a domain attribute, it must be a FQDN (fully qualified domain name). If the domain specified does not contain at least one embedded period the cookie will not be supplied by Internet Explorer on the next request. Therefore you cannot use a NetBios name as a domain attribute when setting a cookie.


If the host name is valid, correct any of the other conditions that are described in the "Cause" section.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


Article Info
Article ID : 275033
Revision : 4
Created on : 1/1/0001
Published on : 1/1/0001
Exists online : False
Views : 582