Ejemplo n.º 1
0
 /**
  *
  * Resumes any previous session, logging out the user as idled or
  * expired if needed.
  *
  * @param Auth $auth An authentication tracker.
  *
  * @return bool Whether or not a session still exists.
  *
  */
 public function resume(Auth $auth)
 {
     $this->session->resume();
     if (!$this->timedOut($auth)) {
         $auth->setLastActive(time());
         $this->adapter->resume($auth);
     }
 }
Ejemplo n.º 2
0
 /**
  *
  * Log the user out via the adapter.
  *
  * @param Auth $auth An authentication tracker.
  *
  * @param string $status The status after logout.
  *
  * @return null
  *
  */
 public function logout(Auth $auth, $status = Status::ANON)
 {
     $this->adapter->logout($auth, $status);
     $this->forceLogout($auth, $status);
 }