Mortgages | Home Insurance | Get Rid of Debt | Credit Report | Problem Mortgage
Script that clears cookies? [Archive] - PCMech Forums

PDA

View Full Version : Script that clears cookies?


racerxfactor
07-22-2005, 01:15 PM
I was wondering if there's a script that will clear a browsers cookies? I'm developing a site that has changable skins; these skins are kept in a cookie so everytime from the first time and end user visits that cookie will remember the layout. If there was a change in skin the end user will still have the old layout because it's kept in a cookie.

any suggestion? Thanks in advance

Statica
07-22-2005, 01:43 PM
Why not use a appropriate expiry time for the cookie?

racerxfactor
07-22-2005, 02:38 PM
i had no idea you can actually set that. if i could set it for a desinated time to stay on the end users computer that would work out well too. how do i do that?

one concern is that the backend of the site is going to be the thing that dumps the cookie and i'm not sure if there's anything i can do the govern that. great suggestion though, i never knew you could do that.