chrome cookie 大小限制 [英] chrome cookie size limit

查看:17
本文介绍了chrome cookie 大小限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从我的 chrome 插件写入会话 cookie.浏览器似乎对 cookie 大小有 4kb 的严格限制.在 Firefox 中似乎并非如此.无论如何,我可以增加 chrome 中的 cookie 大小限制吗?

I'm writing into a session cookie from my plugin in chrome. The browser seems to have a strict limit of 4kb for cookie size. It doesnt seem the case in firefox. Is there anyway i can increase the cookie size limit in chrome?

谢谢

推荐答案

Chrome 支持 HTML5 localStorage,允许您使用字典样式查找.您可以使用它来存储大量数据,而不是使用 cookie 来回传递它们.

Chrome supports HTML5 localStorage that allows you to use a dictionary style look up. You can use this to store larger amounts of data instead of passing them back and forth using cookies.

这篇关于chrome cookie 大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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