I by mistake generate one cookie. which is now affecting my website. it generates in all the path of my website. because I set it up in a header file.
Now I want to delete that cookie once for all the paths.
setcookie('PHPSESSID','xyz',time()+800000);
I can able to delete only one cookie which set on path /
but I can't delete all other cookies which set on different paths from logout.php
file
When deleting a cookie you should assure that the expiration date is in the past, to trigger the removal mechanism in your browser.
setcookie('PHPSESSID','',time()-3600);