Document.Cookie Property Returns an Empty String Content provided by Microsoft Retired KB Content Disclaimer This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated. 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 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. Status Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. More Information To see that the cookies actually exist even though the Document.Cookie property cannot retrieve them, follow these steps: Start Internet Explorer.On the Tools menu, click Internet Options.On the General tab, clickSettings.In the Settings dialog box, clickView Files. Was this information helpful? Yes No Tell us what we can do to improve the article Submit Thanks! Your feedback will help us improve the support experience.