2014-10-03 63 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(); 
    } 
}