For some reason I cannot obtain data from a cookie. I can create one but not read..any ideas why?
//Set Cookies
setcookie ("sb[0]", $uname, time()+7200);
setcookie ("sb[1]", $upass, time()+7200);
After setting the cookie I have two varibles in it. now here is some ways I have tryed pulling the data.
print $_COOKIE["sb[0]"]."<br>";
print $HTTP_COOKIE_VARS["sb[0]"]."<br>";
now if I do this
print_r($HTTP_COOKIE_VARS)."<br>";
it sees the cookie and prints everything in a array.
like this
Array ( [sb] => Array ( [0] => ddrose [1] => 81dc9bdb52d04dc20036dbd8313ed055 ) )