这是一个方便的测试工具:http : //browsercookielimits.iain.guru/
它揭示了很多关于 cookie 的内部细节。单击“为当前浏览器运行测试”以获取结果(只需片刻)。
例如,我为 Google Chrome 10.0.648.134 beta 运行了所有测试:
22:23:46.639: Starting
22:23:47.345: Count: Max Cookie count with Character Length 3 and character "1": 180
22:23:50.131: Size: Max Cookie Character Length using character "1": 4096
22:23:52.347: Count: Max Cookie count with Character Length 4096 and character "1": 180
22:23:54.517: Size: Max Cookie Character Length using character "ÿ": 2049
22:23:57.450: Count: Max Cookie count with Character Length 2049 and character "ÿ": 180
22:23:59.41: Count: Max Cookie count with Character Length 100 and character "1": 180
22:24:0.535: Count: Max Cookie count with Character Length 10 and character "1": 180
22:24:2.88: Count: Max Cookie count with Character Length 5 and character "1": 180
22:24:2.886: Guessing Max Cookie Count Per Domain: 180
22:24:2.887: Guessing Max Cookie Size Per Cookie: 4096 bytes
22:24:2.887: Guessing Max Cookie Size Per Domain: NA
这个答案很旧,但我只是检查了最新 Chrome 版本的结果,它们基本上是一样的。编辑:更新了 Chrome 54.0.2840.98(64 位)的答案。