RE: [PHP] Cookie

From: Date: Sat, 23 Dec 2000 01:43:19 +0000
Subject: RE: [PHP] Cookie
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31645@lists.php.net to get a copy of this message
For testing purposes, try printing out the structure of all your cookies : print_r($HTTP_COOKIE_VARS); Perhaps something interesting will show up :-) Regards, Philip --.sig [ Learning requires a humble attitude. ] On Fri, 22 Dec 2000, Eugene Yi (InfoSpace Inc) wrote: > 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 > > > > -- > 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 >

« previous php.general (#31645) next »