You cannot directly store the array in a cookie, as it only accepts a key and a string. You will need to serialize the array first and put the resulting string into the cookie. When you want the array back, you then do an unserialize. Note, this will only work for simple arrays, not ones...