Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
Document.Cookie Property Returns an Empty String
Article ID: 820536 - View products that this article applies to.
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:
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.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
To see that the cookies actually exist even though the Document.Cookie property cannot retrieve them, follow these steps:
Article ID: 820536 - Last Review: September 9, 2003 - Revision: 1.1