2014-10-03 38 views

回答

2

看起來你都面臨着同樣的問題其他幾個人也這樣做,有five directly related issues on the github

  1. Multiple Issues - Cookies - delete and update both
  2. ->cookies->set() doesn't work everytime
  3. Phalcon\Http\Cookie->delete() not working when session.cookie_domain is set
  4. Fatal error while trying to get not encrypted cookie
  5. Problem with setting cookie

有人建議堅持本地的PHP的cookie功能。查看任何特定錯誤的評論是否有助於解決問題。

0

試試這個代碼。

foreach ($_COOKIE as $key => $value) 
{ 
    $cookie = $this->cookies->get($key); 
    if ($cookie) 
    { 
     $cookie->delete(); 
    } 
}