开发者

It’s good to use many cookies instead of reading out the data from a mysql table multiple times?

I want to create a website where each registered user can customize the look of the website. E.g.: the background color, the order of items, the widgets from 开发者_如何学运维the sidebar, and things like these.

My plan is to save the settings in a mysql table and create cookies for each setting, so I should read the data from mysql only if the cookies are not available …

Is this a good idea or the cookies will slow down the server much more than using only mysql?

Thanks!


Cookies are only good for a single machine. If the user sets values while using one machine those values won't be available on any other machine.

Start the query cache and use MySQL. It will make your users happier.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜