How can i make a cookie removed while someone clicks the logout button?
Here is the code which i used but didn't work through:
<?php
setcookie('name','value',time()-600, '/', '', 0);
?>
Since I am not that much expert in PHP. Any Help?
if (isset($_COOKIE['name'])) {
unset($_COOKIE['name']);
setcookie('name', null, -1, '/');
}