开发者

Best practices when using cookies

I'm working on a javascript page using cookies and I was wondering if it is better to use a single cookie w开发者_开发技巧hich contains multiple values stored in an object or a separate cookie for each value.

Both methods seem to work but is one considered to be a better practice?

Thanks!


No, just use what your project requires. If it makes sense to use one cookie, use one cookie. If not, it's not a problem to use more than one.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜