As already mentioned, when deleting a cookie you must make sure that the expiration date is in the past.
BUT you should also use the same path and even the delete domain that you used to create cookies, so if you create cookies like this
setcookie ("user", "John", time()+7200, '/', 'mydomain.com');
to delete this cookie use this code
setcookie ("user", "", time()-3600, '/', 'mydomain.com');
and also it is better to use a certain date in the past instead of time () - 3600
source share