FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Cookies





Diablosblizz
Hey, I was wondering if it is possible to store what type of template a user has selected?

For example. if there is a drop down box listing all the template, and you choose one, it would store what template you choose in a cookie and it would remember it until the cookie was removed.

Any ideas?
makli
Hi,

in every CMS I know the template a user chooses will be stored in the database.

If you want a template selection without user registration, you have to create a cookie and store the value for the template inside.

Everytime a user requests the page, you have to check if the cookie exists and then you have to select the previously choosen template.

HTH

Makli
snowboardalliance
Depends on how your site is written but it can be done with either php or javascript. Obviously, use php if you already use php (Or you can use ASP or whatever server-side scripting you're using.), and use javascript if not.
Diablosblizz
See, I don't understand how to store information. Thats why i am asking for help.
Related topics
avoid super cookies
recipie for chocolate chip cookies
Introduction To Cookies :
PHP: Sessions and Cookies
Help for sending 2+ cookies in one page.
[php/cookies] poll on two sites
PHPBB Cookies
FireFox and Cookies/Sessions
using cookies in PHP
My forum isn't saving cookies
End of the world: Our cookies are running out
what is better? Sessions or Cookies
Mom Said to Help Girls Bake Ex-Lax Cookies
Cookies?
Cookies not getting set
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.