Puru
Puru

Reputation: 9113

Fallout of cookie size exceeding the size allocated in a browser

What happens if the size of cookies exceeds the size allocated for cookies in a browser?

Upvotes: 3

Views: 240

Answers (1)

T.J. Crowder
T.J. Crowder

Reputation: 1074949

If the entire cookie cannot be stored, the cookie won't be stored at all (at least, not in a compliant implementation). From RFC 2965, Section 5.3:

The information in a Set-Cookie2 response header MUST be retained in its entirety. If for some reason there is inadequate space to store the cookie, it MUST be discarded, not truncated.

Upvotes: 5

Related Questions