Exemple #1
0
 /**
  * Static method to delete a cookie quickly
  *
  * @param   string   $name  The cookie name
  *
  * @return  boolean
  *
  * @throws  \Comodojo\Exception\CookieException
  */
 public static function erase($name)
 {
     try {
         $cookie = new Cookie($name);
         $return = $cookie->delete();
     } catch (CookieException $ce) {
         throw $ce;
     }
     return $return;
 }