/    Sign up×
Community /Pin to ProfileBookmark

Cookie limitation in Internet Explorer

I’m developing a single-player online adventure with a Java applet. The applet can save the current status of the adventure as (rather big) cookies, by calling some Javascript code. I could reproduce the issue also with pure JavaScript embedded in html, that’s why I’m posting it in this forum.

The issue is that after I set 3 cookies of 2K each, JavaScript can’t read the cookies any more. In theory, each domain should be able to set up to 20 cookies of max 4K each. In fact setting the cookie is not the problem, I can see the content of all cookies under my c:windowscookie folder (I have Windows ME with IE 5.5). But when the cookie file that corresponds to my domain grows over 4K, it’s no more possible to read cookies.

I wonder whether anybody else encountered this problem before, and if there is a fix or work around. Thanks in advance,

Joker

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@JokerauthorMar 06.2003 — Interesting point, Dave, but look at another Microsoft source: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dninstj/html/cookietheory.asp

"Browsers place restrictions on the number of cookies that can be held at any one time. The restrictions are:

20 cookies maximum per domain.

4096 bytes per cookie description.

300 cookies overall maximum"

and

"Internet Explorer doesn't have the 20 cookies per domain limit"

Maybe they are right, their limit is much below!

Anyway I'll test that with Netscape, I'm sure they have a different (and correct) interpretation about that limit. And shouldn't we consider a bug the fact that it is actually possibile to continue setting cookies without any error, with the cookie file growing at will, but we can't retrieve any cookie, not even the ones which were set before the file grew beyond limits?

Joker
×

Success!

Help @Joker spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...