Log in

View Full Version : How to force users to change styles in their cookie?


tgmorris
02-27-2005, 08:00 PM
If I install new styles and delete some existing styles what's the best way to get users to update their selection so the styleid stored in the cookie changes?

It seems like one could update all the users default selections in the DB and then force a logout using phpinclude_start if the styleid isn't available. When they log back in they'd get their "new" default style. Right? This would appear as a small "hiccup" in the system to them but would seem to accomplish the task. After a while the code could be removed from phpinclude_start.

Marco van Herwaarden
02-28-2005, 03:49 AM
Just run a one time query to update the style in the user table.

tgmorris
02-28-2005, 04:04 AM
Just run a one time query to update the style in the user table.
I've done that in the past. The problem is that it doesn't change the styleid stored in the cookie. If they don't log out between visits then when they come back in they use the same value as previously stored in the cookie - which now doesn't exist.

What I'm looking for is a way to force the value in the cookie to change.

Marco van Herwaarden
02-28-2005, 06:21 AM
Hmm good question, wouldn't know the answer then.