Hi is it possible to delete a cookie with PHP function? I know this way
setcookie ("name", "", time()-31536000, "/", $SERVER_NAME);
but I need a method when I have lot of vars in my cookie. I want to clean all up!
How? 🙁
Thankx! _
array_keys($_COOKIE) will give you a list of cookies that are set. You can loop through that.
Whether the cookie really does get deleted or not is of course up to the client.
You don't delete the cookie, you set the contents to an empty string.