2011-03-12 61 views

回答

7

http://www.ietf.org/rfc/rfc2109.txt

實用用戶代理 實現具有對 它們可以存儲Cookie的 數量和大小的限制。一般來說,用戶 代理的Cookie支持應該有 沒有固定的限制。他們應該努力使 儘可能多地存儲經常使用的cookie。此外, 一般使用的用戶代理應 提供每個單獨以下最低 能力,雖然 不必同時:

* at least 300 cookies 

    * at least 4096 bytes per cookie (as measured by the size of the 
    characters that comprise the cookie non-terminal in the syntax 
    description of the Set-Cookie header) 

    * at least 20 cookies per unique host or domain name 
6

根據我自己的研究,我建議你不要超過50每個域的Cookie每個域4095個字節。也就是說,您網域上所有Cookie的大小不應超過4095個字節。

如果您想了解更多,我已經分享了我的研究here

+0

看起來像鏈接已死。任何人有更新? – 2015-10-21 16:56:14

相關問題