The most easiest and clean way to unset a cookie in PHP
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
👋 Hi there! I'm Amit. I write articles about all things web development. If you like what I do and want me to continue doing the same, I'd like you consider leaving a tip. I'd highly appreciate that. Cheers!