Leave a Reply

1 comment

  1. looks like I needed add a path to my cookie. This fixed it:

    $timer = time()+86400;
    setcookie('alertuser', '1', $timer, '/');
    

    and

    $timer = time()-86400;
    setcookie('alertuser', '', $timer, '/');