Re: Cookie
| From: | Cynic | Date: | Sat, 23 Dec 2000 00:21:45 +0000 |
| Subject: | Re: Cookie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31641@lists.php.net to get a copy of this message | ||
This is just a normal array, so you should access it just
like any other array:
$domain = $HTTP_COOKIE_VARS["cbcookie"][1];
At 01:14 23.12. 2000, Eugene Yi (InfoSpace Inc) wrote the following:
--------------------------------------------------------------
>I've used cookie in PHP before with problem but I now have a problem.
>I do:
> setcookie("cbcookie[1]",$domain, time()+3600);
> header("Location:../home.php");
>
>In home.php, I do to read the cookie var:
> $domain = $HTTP_COOKIE_VARS["cbcookie[1]"];
> echo "domain($domain)<br>";
>
>And I see blank. I see the cookie created in IE's Cookies dir in my HDD.
>Please help me. Thanks.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz