test.php
<?php
setcookie('username', 'mary', time()+1000);
setcookie('username', 'mary', time()-1000);
?>
view.php
<?php
echo $_COOKIE['username'];
?>
Ошибка, которую я получаю после удаления cookie
Примечание: неопределенный индекс: имя пользователя в C: \ Users \ joe \ Documents \ Discrete Math \ xampp \ htdocs \ view.php в строке 3