I need to set a cookie, and later update it. Meaning, the cookie needs to retain its current value, plus add new values to it from GET variable data.
I've tried setting the cookie with arrays, but I just can't seem to get it working. Any ideas?
implode your array with "|" and set it as a string, then when you read it, explode the string with "|" and voila! there's your array. if you need to store keys as well as values, you'll have to im/explode each item again, with ":" or something.
Another thought occurs: you can use [man]serialize/man to store arrays as strings.