public function logout() { if ($this->getStatus()) { $this->_request->setSession('auth', null); return !$this->getStatus(); } return false; }
/** * process the class * * @since 3.0.0 * * @return string */ public function process() { $auth = new Auth($this->_request); $auth->init(); /* handle success */ if ($auth->logout()) { return $this->_success(); } return $this->_error(); }