To test if a cookie was successfully set, check for the cookie on a next loading page before the cookie expires.
?php setcookie( "TestCookie" ,"Valeur de test"); setcookie("TestCookie",$value,time()+3600); / * expire dans une heure * / setcookie("TestCookie",$value,time()+3600 ," / ~rasmus / ",".utoronto.ca",1);?