https://github.com/LevinWeinstein/Crypto-Project-8-WebApp/blob/73e8701910c299ed4ea423017c7802d9d523f30c/public/controllers/logoutController.php#L1 Instead of setting the cookie to empty string, you may delete the cookie.