TYPO3 CMS  TYPO3_6-2
LogoutController.php
Go to the documentation of this file.
1 <?php
3 
18 
26 
32  public function logout() {
33  if (!empty($GLOBALS['BE_USER']->user['username'])) {
34  // Logout written to log
35  $GLOBALS['BE_USER']->writelog(255, 2, 0, 1, 'User %s logged out from TYPO3 Backend', array($GLOBALS['BE_USER']->user['username']));
36  \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get()->removeSessionTokenFromRegistry();
37  $GLOBALS['BE_USER']->logoff();
38  }
40  $redirectUrl = $redirect ? $redirect : 'index.php';
42  }
43 
44 }
static redirect($url, $httpStatus=self::HTTP_STATUS_303)
Definition: HttpUtility.php:76
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]