I know what arrays are. However... I do not think cookies support arrays. I am pretty sure of it, actually.
Run this script to test it:
Now check your cookies. You will find five seperate cookies set.
Run this script to test it:
PHP Code:
setcookie("myarray[0]", "boo0", time()+900, "/");
setcookie("myarray[1]", "boo1", time()+900, "/");
setcookie("myarray[2]", "boo2", time()+900, "/");
setcookie("myarray[3]", "boo3", time()+900, "/");
setcookie("myarray[4]", "boo4", time()+900, "/");
Comment