I had run into the same problem deleting a cookie set in the session,
instead of setcookie("account", "", time()-20000, "/", "domain.com" );
use
setcookie("account", "", time()-20000, "/", "domain.com" , false, true);
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.