"Eugene Yi (InfoSpace Inc)" wrote:
>
> Thank you for your feedback! I tried it but it didn't make a difference. I
> printed the var right after the set and it returns null.
>
> setcookie("cbcookie1",$domain,0,"/","mydomain.com");
> $domain = $HTTP_COOKIE_VARS["cbcookie1"];
> echo "domain($domain)<br>";
ahem, I think you shall see the cookie after a round trip to the
browser.
if you set it w/ setCookie() it won't be available right away in
HTTP_COOKIE_VARS.
only on the next calls to the page, cause the client has to receive it,
accept it (eventually) and send it back. when she sends it back, it is
in fact a HTTP header,
so it will be parsed and avaiable in that http array.
-- teodor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]