public function remove($name):bool
    {
        if (isset($this->session[$name])) {
            unset($this->session[$name]);
            $this->save();
            return (true);
        } else {
            throw new Server500(new \ArrayObject(array("explain" =>
                    "Session Error : The session name [$name] is not defined", "solution" =>
                    "Please check the session object with HttpSession::all instruction to remove".
                    " the correct session item")));
        }
    }
public function remove($name):bool
    {
        if (isset($this->session[$name])) {
            unset($this->session[$name]);
            $this->save();
            return (true);
        } else {
            throw new Server500(new \ArrayObject(array("explain" =>
                    "Session Error : The session name [$name] is not defined", "solution" =>
                    "Please check the session object with HttpSession::all instruction to remove".
                    " the correct session item")));
        }
    }
public function remove ( $ name ) : bool { if ( isset ( $ this -> session [ $ name ] ) ) { unset ( $ this -> session [ $ name ] ) ; $ this -> save ( ) ; return ( true ) ; } else { throw new Server500 ( new \ ArrayObject ( array ( "explain" => "Session Error : The session name [$name] is not defined" , "solution" => "Please check the session object with HttpSession::all instruction to remove" . " the correct session item" ) ) ) ; } }
Remove a session item
@param string $name Item name
@return bool
@throws Server500
@throws \Exception
Remove a session item