public function deleteByKey($name) : void
    {
        if(!$this->keyExists($name)) {
            return;
        }

        parent::deleteByKey($name);
        unset($_SESSION[$name]);
    }
public function deleteByKey($name) : void
    {
        if(!$this->keyExists($name)) {
            return;
        }

        parent::deleteByKey($name);
        unset($_SESSION[$name]);
    }
public function deleteByKey ( $ name ) : void { if ( ! $ this -> keyExists ( $ name ) ) { return ; } parent :: deleteByKey ( $ name ) ; unset ( $ _SESSION [ $ name ] ) ; }
Removes a variable from the session.

@param mixed $name Variable name.
Removes a variable from the session .