Reputation: 9113
What happens if the size of cookies exceeds the size allocated for cookies in a browser?
Upvotes: 3
Views: 240
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