1

非常に簡単です:

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

常に「はい」を取得します。CakePHP 2.7.3 の使用

4

0 に答える 0