As far as I read there is are two limits on the number of cookies :
What does happen if I exceed one of these limits ?
Short Answer:
If you exceed the limits per host/domain, the cookies simply won't be saved.
If you exceed the total number of cookies, Your browser will alert you that the maximum number of cookies has been reached
Note that your question states that the max number of cookies per host is 20 and the total allowed is 300. However, this is not completely true. The number of maximum cookies is highly dependent on the Browser. For example,
As far as the RFC spec goes, the minimum requirements are:
This resource can help you test browser cookie limits. Also this SO post will shed some light on the design and performance aspect.
References: Cookie Limit per domain, Browser Cookie Restrictions
I tried adding lots of cookies with a quick loop (100 at a time) both Chrome 69.0.3497 and FireFox 62.0.3 remove the older cookies and store the new ones.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With