public function clearCookie($domain = '-', $path = null)
    {
        if ($domain === null) {
            $this->_cookies = [];
        } else {
            $domain = strtolower($domain);
            if ($path === null) {
                unset($this->_cookies[$domain]);
            } else {
                if (isset($this->_cookies[$domain])) {
                    unset($this->_cookies[$domain][$path]);
                }
            }
        }
    }
public function clearCookie($domain = '-', $path = null)
    {
        if ($domain === null) {
            $this->_cookies = [];
        } else {
            $domain = strtolower($domain);
            if ($path === null) {
                unset($this->_cookies[$domain]);
            } else {
                if (isset($this->_cookies[$domain])) {
                    unset($this->_cookies[$domain][$path]);
                }
            }
        }
    }
public function clearCookie ( $ domain = '-' , $ path = null ) { if ( $ domain === null ) { $ this -> _cookies = [ ] ; } else { $ domain = strtolower ( $ domain ) ; if ( $ path === null ) { unset ( $ this -> _cookies [ $ domain ] ) ; } else { if ( isset ( $ this -> _cookies [ $ domain ] ) ) { unset ( $ this -> _cookies [ $ domain ] [ $ path ] ) ; } } } }
Clean all cookies
@param string $domain use null to clean all cookies, '-' to clean current cookies.
@param string $path
Clean all cookies