My problem is that I want to delete the cookie from the page which is in the different directory from the page who sets the cookie but due to the path restriction PHP is not deleting the cookie. Has anyone any solution?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you set and delete the cookies, pass the same path:
http://php.net/manual/en/function.setcookie.php
http://www.phpbuddy.com/article.php?id=12