1
設站點URL = WWW.DOMAIN1.COM設置PHP餅乾DOMAIN2
for set cookie, code as
$Name = 'cookiee_name';
$Value = '123456';
$Expires = 3600*24;
$Path = '/';
$domain1 = 'WWW.DOMAIN1.COM';
$domain2 = 'WWW.DOMAIN2.COM';
setcookie($Name,$Value,$Expires,$Path,$domain1);
它設置與$ DOMAIN1。但是當我使用$ domain2而不是$ domain1像
setcookie($Name,$Value,$Expires,$Path,$domain2);
它沒有設置$ domain2 $ domain1?
可能重複的[如何爲其他域設置Cookie](http://stackoverflow.com/questions/6761415/how-to-set-a-cookie-for-another-domain) –