One cookie with many values or many cookies with one value?

前端 未结 4 401
慢半拍i
慢半拍i 2021-02-07 06:43

If I have many settings that I want to store in a cookie, should I create multiple cookies with one option each, or one big cookie with multiple options in a serialized array or

4条回答
  •  情书的邮戳
    2021-02-07 07:20

    I'd prefer a serialized array.... Cookies are files stored on the client's machine or the server, so less is better.

提交回复
热议问题