By default, Internet Explorer can store a maximum of 20 cookies for each domain. If a server in the domain sends more than 20 cookies to a client computer, the browser on the client computer automatically discards some old cookies.
Each cookie consists of a single name-value pair. This pair may be followed by attribute-value pairs that are separated by semicolons.
- The document.cookie property can retrieve only 4,096 bytes of a cookie on a client computer. If the cookie string is longer than 4,096 bytes, the property returns an empty string.
- Internet Explorer and the HTTP Wininet API ignore the Set-Cookie header if its length exceeds 5,118 bytes.
For more information, click the following article number to view the article in the Microsoft Knowledge Base: