Re: Weirdness with setcookie() (3rd time - come on people :)

From: Date: Tue, 14 Nov 2000 01:23:05 +0000
Subject: Re: Weirdness with setcookie() (3rd time - come on people :)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25079@lists.php.net to get a copy of this message
Joao, Well, maybe I'm still not understanding the problem. The cookie isn't available until the page after the page that sets the cookie. If you are trying to print them in the same script, of course they won't be available. More random thoughts to try and help... :) -jeremy brand http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more --------------------------------------------------------------------- We cannot do everything at once, but we can do something at once. -- Calvin Coolidge On Mon, 13 Nov 2000, Joao Prado Maia wrote: > Date: Mon, 13 Nov 2000 17:16:08 -0800 (PST) > From: Joao Prado Maia <jmaia@kefta.com> > To: jeremy brand <jeremy@nirvani.net> > Cc: Joao Prado Maia <jmaia@kefta.com>, php-general@lists.php.net > Subject: Re: [PHP] Weirdness with setcookie() (3rd time - come on people :) > > > On Mon, 13 Nov 2000, jeremy brand wrote: > > > Could it be that you possibly have output going to your browser before > > the setcookie() is called? > > No it isn't that, because if it was that, the page would not be even > redirecting, since the header() call also has that constraint. > > Everything works, the cookie is just not set. I already even used > print_r($cookie_value) to print the dump of the array I'm trying to set > the cookie to, and the values are all there. > > Joao > > -- > Joao Prado Maia > Web Developer > Kefta, Inc. > T: (415) 391-6881 ext 8008 > F: (415) 391-7079 > >

« previous php.general (#25079) next »