if(!isset($_COOKIE["chkPopup"])) {
setcookie("chkPopup", true, time() + (3600 * 24 * 365), "/"); //Cookie at
echo "ALERT GÖNDER"; //Alerti yazdır
}

//Kontrol:
if(isset($_COOKIE["chkPopup"]) && $_COOKIE["chkPopup"]) {
echo "Cookie set edilmiş ve true değerini döndürüyor.";
}