I want to unset/delete my existing cookie with this:
setcookie (\"user\", \"\", time()-1); unset($user);
But cookies can not be deleted or
When deleting a cookie you should assure that the expiration date is in the past.
Delete example:
// set the expiration date to one hour ago setcookie("user", "", time()-3600);