Hi all,
I'm currently putting together an online store using PHP but have come up against an issue when trying to delete cookies. When a shopper purchases something from my site, the reference numbers of the items they have ordered are held in a cookie called order. Once the shopper has been to the third-party payment processor, they redirect them back to a page on my website to give an order confirmation.
I have the following line of code on the confirmation page:
setcookie('order', '', time() - 3600);
which I thought would delete the cookie 'order'. However, it still seems to be there even after reloading the page, or following a link to another page that uses the same cookie.
Any help on this would be much appreciated, as I'm at a loss!
Thanks in advance,
vsource