public function removeCookie($name, $path = '/', $domain = null)
    {
        if (null === $path) {
            $path = '/';
        }

        unset($this->cookies[$domain][$path][$name]);

        if (empty($this->cookies[$domain][$path])) {
            unset($this->cookies[$domain][$path]);

            if (empty($this->cookies[$domain])) {
                unset($this->cookies[$domain]);
            }
        }

        if (empty($this->cookies)) {
            unset($this->headerNames['set-cookie']);
        }
    }
public function removeCookie($name, $path = '/', $domain = null)
    {
        if (null === $path) {
            $path = '/';
        }

        unset($this->cookies[$domain][$path][$name]);

        if (empty($this->cookies[$domain][$path])) {
            unset($this->cookies[$domain][$path]);

            if (empty($this->cookies[$domain])) {
                unset($this->cookies[$domain]);
            }
        }

        if (empty($this->cookies)) {
            unset($this->headerNames['set-cookie']);
        }
    }
public function removeCookie ( $ name , $ path = '/' , $ domain = null ) { if ( null === $ path ) { $ path = '/' ; } unset ( $ this -> cookies [ $ domain ] [ $ path ] [ $ name ] ) ; if ( empty ( $ this -> cookies [ $ domain ] [ $ path ] ) ) { unset ( $ this -> cookies [ $ domain ] [ $ path ] ) ; if ( empty ( $ this -> cookies [ $ domain ] ) ) { unset ( $ this -> cookies [ $ domain ] ) ; } } if ( empty ( $ this -> cookies ) ) { unset ( $ this -> headerNames [ 'set-cookie' ] ) ; } }
Removes a cookie from the array, but does not unset it in the browser.

@param string $name
@param string $path
@param string $domain
Removes a cookie from the array but does not unset it in the browser .