Suppose site URL = WWW.DOMAIN1.COM
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);
it sets with $domain1. But when i used $domain2 instead of $domain1 like
setcookie($Name,$Value,$Expires,$Path,$domain2);
it is s not set with $domain2 for $domain1?