concrete/src/Cookie/ResponseCookieJar.php
public function clear($name)
    {
        if (!in_array($name, $this->clearedCookies, true)) {
            $this->clearedCookies[] = $name;
            foreach ($this->cookies as $index => $value) {
                if ($value->getName() === $name) {
                    unset($this->cookies[$index]);
                }
            }
            $this->cookies = array_values($this->cookies);
        }
    }
public function clear($name)
    {
        if (!in_array($name, $this->clearedCookies, true)) {
            $this->clearedCookies[] = $name;
            foreach ($this->cookies as $index => $value) {
                if ($value->getName() === $name) {
                    unset($this->cookies[$index]);
                }
            }
            $this->cookies = array_values($this->cookies);
        }
    }
public function clear ( $ name ) { if ( ! in_array ( $ name , $ this -> clearedCookies , true ) ) { $ this -> clearedCookies [ ] = $ name ; foreach ( $ this -> cookies as $ index => $ value ) { if ( $ value -> getName ( ) === $ name ) { unset ( $ this -> cookies [ $ index ] ) ; } } $ this -> cookies = array_values ( $ this -> cookies ) ; } }
Clear a cookie.

@param string $name

@return $this
Clear a cookie .