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

From: Date: Tue, 14 Nov 2000 02:34:32 +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-25096@lists.php.net to get a copy of this message
On Mon, 13 Nov 2000, Mark Maggelet wrote: > well, when you include() it, the cookie wouldn't be set because the > browser hasn't had a chance to send it yet. When you include another script, and this script has any HTML being outputted (like whitespaces or normal tags), PHP sends the cookie along with it to the browser, so the cookie is set with include(). That is, if the file you are including outputs anything to the browser, and my script does :) > one more thing to try is your GPC order, could a post value be > sneaking in there? I thought of that for two seconds a while back, but again, there is another section of this site that uses cookies, and I don't use $HTTP_COOKIE_VARS in there, and it works. Thanks, Joao -- Joao Prado Maia Web Developer Kefta, Inc. T: (415) 391-6881 ext 8008 F: (415) 391-7079

« previous php.general (#25096) next »