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.

Document.Cookie Property Returns an Empty String


View products that this article applies to.

Symptoms

When you use client-side code (the Document.Cookie property) to write cookies, and then use the same method to retrieve the cookies, you may receive an empty string or the following error message:
ERROR_INSUFFICIENT_BUFFER

↑ Back to the top


Cause

This problem may occur if the total size of the cookies that are stored in your domain is 4,096 bytes or greater. This is a limitation in the current version of Mshtml.dll.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

To see that the cookies actually exist even though the Document.Cookie property cannot retrieve them, follow these steps:
  1. Start Internet Explorer.
  2. On the Tools menu, click Internet Options.
  3. On the General tab, click Settings.
  4. In the Settings dialog box, click View Files.

↑ Back to the top


Keywords: KB820536, kbprb

↑ Back to the top

Article Info
Article ID : 820536
Revision : 2
Created on : 9/9/2003
Published on : 9/9/2003
Exists online : False
Views : 217