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

1 · Amit Merchant · Nov. 12, 2019, 10:19 a.m.
Summary
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. Today I learned: The easiest way of unsetting a cookie in PHP is by setting its value to "false". Period. #PHP #TidBits pic.twitter.com/gjcODyttOD— Amit Merchant (@amit_merchant) November 12, 2019 ...