This post has been migrated from www.experimentsincode.com, we apologise if some of the images or content is missing
,item1,item2The list of values started with a comma and this turns out to be the problem. If you have this comma Safari 4 will create the cookie but will not save the data, so you end up with an empty cookie.