コード例 #1
0
ファイル: class_session.php プロジェクト: MenZil-Team/anwiki
 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;
 }