How can I store more than one variable in a cookie? I tried doing it with the code below, but it doesn't do anything...
setcookie("mycookie[0]", $var_1, $var_2, mktime(0,0,0,1,1,2002));
Any help would be appreciated
either use multiple cookies (the easy solution) or use serialize() to create a printable representation of a collection of vars. (check the manual)