Cookie destroy not working in CakePHP 2.7

423 Views Asked by At

Quite straight forward:

public function demo(){
    $this->Cookie->delete('Auth.User');
    $this->Cookie->destroy();
    if($this->Cookie->check('Auth.User')){
        echo "yes";
    }else{
        echo "no";
    }
    die();
}

Getting "yes" all the time. Using CakePHP 2.7.3

0

There are 0 best solutions below