TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
▼
TYPO3 CMS
TYPO3 CMS
Test List
Todo List
Deprecated List
►
Namespace Members
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
LogoutController.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Backend\Controller
;
3
17
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
18
25
class
LogoutController
{
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
}
39
$redirect =
GeneralUtility::sanitizeLocalUrl
(
GeneralUtility::_GP
(
'redirect'
));
40
$redirectUrl = $redirect ? $redirect :
'index.php'
;
41
\TYPO3\CMS\Core\Utility\HttpUtility::redirect
($redirectUrl);
42
}
43
44
}
GeneralUtility
TYPO3\CMS\Backend\Controller\LogoutController
Definition:
LogoutController.php:25
TYPO3\CMS\Core\FormProtection\FormProtectionFactory\get
static get($className=NULL)
Definition:
FormProtectionFactory.php:66
TYPO3\CMS\Backend\Controller\LogoutController\logout
logout()
Definition:
LogoutController.php:32
TYPO3\CMS\Core\Utility\HttpUtility\redirect
static redirect($url, $httpStatus=self::HTTP_STATUS_303)
Definition:
HttpUtility.php:76
TYPO3\CMS\Core\Utility\GeneralUtility\_GP
static _GP($var)
Definition:
GeneralUtility.php:128
TYPO3\CMS\Core\Utility\GeneralUtility\sanitizeLocalUrl
static sanitizeLocalUrl($url='')
Definition:
GeneralUtility.php:3955
$GLOBALS
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
Definition:
ext_localconf.php:5
TYPO3\CMS\Backend\Controller
Definition:
BackendController.php:2
typo3
sysext
backend
Classes
Controller
LogoutController.php
Generated on Wed Aug 7 2019 09:52:18 for TYPO3 CMS by
1.8.13