什么是主流浏览器允许cookie的数量和大小? [英] What is the number and size of cookies allowed by major browsers?

查看:183
本文介绍了什么是主流浏览器允许cookie的数量和大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道什么是大小和IE,FF,铬和Safari允许Cookie数量。什么是与每个主机允许的数量每个Cookie的大小?如果你尝试存储Cookie,而不是使用Javascript最大尺寸也较大,会发生什么?

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?

推荐答案

从浏览器不同而不同的浏览器。最大的限制是IE6只能接受20域的Cookie(所有其他现代浏览器[FF3 +,IE7 / 8,萨法航空4/5,Chrome浏览器]可以接受更多更多)。一旦达到IE6它的20 cookie限制,它随机覆盖旧的cookie,它是一个大问题,因为你永远不知道哪一个得到清除。

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.

<一个href=\"http://www.ghacks.net/2008/08/16/browser-cookie-limits/\">http://www.ghacks.net/2008/08/16/browser-cookie-limits/

希望有所帮助。

这篇关于什么是主流浏览器允许cookie的数量和大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆