Discussion Locked

IE6 20 Cookie limitation

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm writting a browser application in JavaScript. I wrote most of it when I was running WinMe. I've recently switched to XP Home and now Cookies are disappearing. I thought it was date related, but that's not true, some created this morning are now missing.

document.cookies.length is well below 4k.

I'm running Version 6.0.2800.1106.xpsp2.021108-1929

It seems that I can only write 20 cookies per document now. When I write the 21st, the oldest dissapears. Does anyone have any idea how to get around this new "feature"? I looked thru the browser settings and don't see anything obvious.

3 replies

by nikki96

It's 20 per domain, for both IE and Netscape now. You can't change that. People don't like when you store that much data on their PCs. Specifications said 20 per domain, 4 K per cookie, 300 max at minimums, but NN used them as maximums so the other browsers are taking the same path (and the newest W3C specs also specify these as maximums). Most users don't like too many cookies, so the browsers are doing what the users want.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dninstj/html/cookietheory.asp
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=%238P825uyBHA.2540%40tkmsftngp04&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Die6%2B20%2Bcookies%2Bper%2Bdomain%26btnG%3DGoogle%2BSearch

by johngreer

Thanks. I'll try to plan around with the DOMAIN parm and see if I can trick it into using more than 20.

This discussion is closed to new replies.