/** * Logs the current user out. * * @return void */ public function logout() { $this->user = null; $this->session->forget(); $this->cookie->forget(); }
/** * Logs the current user out. * * @return void */ public function logout() { $this->user = null; setcookie('synergixe_sso', serialize($this->session->get()), time() - 24 * 3600, "/", ".synergixe.ng", FALSE, TRUE); $this->session->forget(); $this->cookie->forget(); }