function ckeck_cookie()
{
setcookie("moty66","moty66");
if($_COOKIE["moty66"] === "moty66")
return true;
else
return false;
}

pernso che sia così !

ciao