Cannot seem to delete the PHPSESSID cookie


I cannot seem to delete the PHPSESSID cookie when I visit my cookie delete page. This is the code for the cookie delete page.
<?php

session_destroy();
echo "Cart cleared.";
header("Location: /shop.php");
die();

" It does not unset any of the global variables associated with the session, or unset the session cookie ." - https://7php.com/php-5-3-how-to-completely-destroy-session-variables-in-php/
It says you need to manually delete the cookie too it only erases server data

1 Like

Ok, I will take a look at that.