コード例 #1
0
 /**
  * Logs out the current user and clears the form protection tokens.
  */
 public function logoff()
 {
     if (isset($GLOBALS['BE_USER'])) {
         \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get()->clean();
     }
     parent::logoff();
 }
コード例 #2
0
 /**
  * Log out current user!
  * Removes the current session record, sets the internal ->user array to a blank string
  * Thereby the current user (if any) is effectively logged out!
  * Additionally the cookie is removed
  *
  * @return void
  */
 public function logoff()
 {
     parent::logoff();
     // Remove the cookie on log-off, but only if we do not have an anonymous session
     if (!$this->isExistingSessionRecord($this->id) && $this->isCookieSet()) {
         $this->removeCookie($this->name);
     }
 }
コード例 #3
0
 /**
  * Logs out the current user and clears the form protection tokens.
  */
 public function logoff()
 {
     if (isset($GLOBALS['BE_USER']) && $GLOBALS['BE_USER'] instanceof self && isset($GLOBALS['BE_USER']->user['uid'])) {
         \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get()->clean();
     }
     parent::logoff();
 }