RE: [PHP] Cookie
| From: | InfoSpace Inc) | Date: | Sat, 23 Dec 2000 00:23:53 +0000 |
| Subject: | RE: [PHP] Cookie | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-31642@lists.php.net to get a copy of this message | ||
Thanks. But I just tried that and it's the same. I tried non-array var
before, too. I see the cookie file created and opened it up in Notepad to
see the var is there. BTW, how does it know which cookie file to get the
cookie var from?
> -----Original Message-----
> From: Cynic [mailto:cynic@mail.cz]
> Sent: Friday, December 22, 2000 4:22 PM
> To: Eugene Yi (InfoSpace Inc); php-general@lists.php.net
> Subject: Re: [PHP] Cookie
>
>
> 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
>
>
>
> --
> 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
>