The most easiest and clean way to unset a cookie in PHP

Amit Merchant · November 12, 2019 ·

Today, I got to know about a very clean looking and intuitive way of unsetting/deleting a cookie from client’s browser using PHP. No “setting the expiry time in past” bullshit.

Hi there! I'm Amit. I write articles about all things web development. If you like what I write, buy me a coffee. I'd highly appreciate that. Cheers!


Follow me on Twitter @amit_merchant