chrome cookie size limit

前端 未结 3 1753
名媛妹妹
名媛妹妹 2020-12-05 07:00

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 an

3条回答
  •  天涯浪人
    2020-12-05 08:00

    According to RFC 1012 cookie size must not be limited by user agent. But the minimum capabilities of a browser or user agent should be at least 4096 bytes per cookie. This limit is applied to the name=value portion of the cookie only.

    So some browsers can support longer cookies as well. List :

    1. Internet Explorer 8 allowed cookies up to 4095 bytes
    2. Chrome 9 allowed cookies up to 4096 bytes
    3. Opera 11 allowed cookies up to 4096 bytes
    4. Safari 5 allowed coookies up to 4097 bytes
    5. Firefox 3.6.3 allowed cookies up to 4097 bytes

    Source of Answer : http://webdesign.about.com/od/cookies/f/web-cookies-size-limit.htm

提交回复
热议问题