/** * * 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); } }
/** * * 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); }