I have created a cookie in basic-html.php. The code I use is:
setcookie("webExamsTaken", implode(",", $examsTaken), time() + 60*60*24*30);
I have another PHP program called delwecookies.php where I attempt to delete this cookie. The code I use here is:
setcookie("webExamsTaken", "", time() - 3600);
echo "Cookie deleted.";
The attempt to delete the cookie in delwecookies.php is failing. Can anyone please tell me why? Thank you.