trying to destroy a cookie
From PHP.net
dest is my cookie...
But when I go to the next page and check my cookies ($_COOKIE), it's still there.
Can you guys see anything wrong with that code? Suggestions?
[update] strange
I ended up deleting it with Javascript
setcookie("dest", "", time() - 3600);dest is my cookie...
But when I go to the next page and check my cookies ($_COOKIE), it's still there.
Can you guys see anything wrong with that code? Suggestions?
[update] strange
setcookie ("dest", "somethingelse"); will change the value. But I need to destroy it, because the Javascript wont reassign a value.I ended up deleting it with Javascript
