Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the number and size of cookies allowed by major browsers?

Just wondering what is the size and number of cookies allowed by IE, FF, Chrome, and Safari. What is the number allowed per host and the size of each cookie? Also what would happen if you try to store cookie larger than the max size using Javascript?

like image 636
Mark K Avatar asked Nov 03 '10 00:11

Mark K


1 Answers

It varies from browser to browser. The biggest limitation is IE6 which can only accept 20 domain cookies (all other modern browsers [FF3+, IE7/8, Safair 4/5, Chrome] can accept much much more). Once IE6 reaches it's 20 cookie limit, it randomly overwrites an older cookie, which is a major concern since you'll never know which one got removed.

If you like the run some specific tests -- visit this blog post and experiment with the authors test scripts.

http://www.ghacks.net/2008/08/16/browser-cookie-limits/

Hope that helps.

like image 92
rsturim Avatar answered Sep 28 '22 01:09

rsturim