function needsReauth() { if (!$this->isLoggedIn() || !AnwComponent::globalCfgReauthEnabled() || !AnwSessions::isReauthSupported()) { self::debug("needsReauth: skipping"); return false; } $nTimeElapsed = time() - $this->nTimeAuth; self::debug("needsReauth: " . $nTimeElapsed . "/" . AnwComponent::globalCfgReauthDelay() . "s"); if ($nTimeElapsed > AnwComponent::globalCfgReauthDelay()) { return true; } return false; }