What I am trying to do is give the users/visitors the option to alter the whole website based on their taste. So they can move for example the sticky bar from top to bottom, alter background colors, news box from left to right etc.For users I will probably store all the information in the DB but I am not sure how I should handle this afterward. Should I store all the settings into a cookie instead of grabbing that info from the DB all the time and rebuilding the website based on their taste or do you have any other idea?
Best way to let users/visitors alter the website design
design;web development;css
Instead of using cookies, it would be smarter to use sessions: There is now only one cookie set, which would be some unique identifier of the user.And then indeed grab all the important user information from the database. You can of course store this information in session variables afterwards, and only reload them if they are not set, or a user changed their preferences.