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 and want me to continue doing the same, I would like you buy me some coffees. I'd highly appreciate that. Cheers!