src/sb/Controller/HTTP.php
public function unsetCookie($name, $path = '/')
    {
        setcookie($name, '', time() - 86400, '/', '', 0);
        if (isset($_COOKIE) && isset($_COOKIE[$name])) {
            unset($_COOKIE[$name]);
        }
        if (isset($this->request->cookie[$name])) {
            unset($this->request->cookie[$name]);
        }
    }
public function unsetCookie($name, $path = '/')
    {
        setcookie($name, '', time() - 86400, '/', '', 0);
        if (isset($_COOKIE) && isset($_COOKIE[$name])) {
            unset($_COOKIE[$name]);
        }
        if (isset($this->request->cookie[$name])) {
            unset($this->request->cookie[$name]);
        }
    }
public function unsetCookie ( $ name , $ path = '/' ) { setcookie ( $ name , '' , time ( ) - 86400 , '/' , '' , 0 ) ; if ( isset ( $ _COOKIE ) && isset ( $ _COOKIE [ $ name ] ) ) { unset ( $ _COOKIE [ $ name ] ) ; } if ( isset ( $ this -> request -> cookie [ $ name ] ) ) { unset ( $ this -> request -> cookie [ $ name ] ) ; } }
Unsets a cookie value by setting it to expire
@param string $name The cookie name
@param string path The path to clear, defaults to /
Unsets a cookie value by setting it to expire