/** * For do logout, delete login information from session * * @return bool */ public function logout() : bool { unset($this->sessionInstance->login, $this->sessionInstance->loginTime); $this->sessionInstance->regenerate(); $this->logged = false; return true; }