Beispiel #1
0
	/**
	 * Logs the current user out.
	 *
	 * @return void
	 */
	public function logout()
	{
		$this->user = null;

		$this->session->forget();
		$this->cookie->forget();
	}
Beispiel #2
0
 /**
  * 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();
 }