Re[2]: [PHP-DB] cookies

From: Date: Thu, 04 Dec 2003 13:34:00 +0000
Subject: Re[2]: [PHP-DB] cookies
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-31889@lists.php.net to get a copy of this message
Hello Maris, Thursday, December 4, 2003, 12:24:10 PM, you wrote: MK> <img nocache border=0 width=2 height=1 MK> src=http://www.cookiedomain.com/cookies/cookies.php> MK> isnt it refering and setting cookie for www.cookiedomain.com MK> even if this HTML file is on another domain? No, because by that point the Header has already been sent. You can't issue a cookie after a header has gone and use it in the same page session. As the PHP manual so elegantly puts it - this is a protocol restriction. Your browser will look for cookies at the start of the page request, not in the middle of it (where your image is). At that point, the header is already sent. -- Best regards, Richard mailto:rich@launchcode.co.uk

« previous php.db (#31889) next »