Dear all:
let say $choice is an array with 5 elements that i passed to the following script....
<?php
$choice_s=serialize($choice);
setcookie("choice_cookie",$choice_s);
?>
above is ok for me. array has been serialized and cookie has been set. but when i try to get the array back by following script in any page i designed, it failed. really wonder why?
<?php
$choice_cookie=$HTTP_COOKIE_VARS["choice_cookie"];
$choice=unserialize($choice_cookie);
$count=count($choice);
echo $count; //give me output 1 only....how come????
?>
hope you all can help me. thanks