Re[2]: cookies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux