egemen if (isset($_GET["ekle"])) { echo "test"; $id = $_GET["ekle"]; setcookie("urun[" . $idi . "]", true, time() + 99999); header("location:index.php"); } else { echo "test2"; }
KerimCETINBAS Çerez ayarlarını array olarak vermen gerekiyormuş setcookie(string $isim, string $değer = "", array $seçenekler = []): bool Buradan dökümantasyona bakabilirsin