Feature #16615
closedAdd the ability to set a pid for logout
0%
Description
If the user logs out in a secured area of the site he will get a 404, cause after logging out the user isn't allowed to see the page.
This especially for sites that are using the more advanced 404 features of TYPO3 4.0.1, which is IMHO very good style to use (regarding search engine optimization, Google Sitemap, etc.).
An easy fix for this would be to set an optional configuration value for a logout pid, that's used as action for the logout form.
e.g.
if ($GLOBALS['TSFE']->loginUser) {
if ($logintype == 'login') {
...
$action_pid = $GLOBALS['TSFE']->id;
} else {
...
$action_pid = isset($this->conf['logoutPid']) ? isset($conf['logoutPid']) : $GLOBALS['TSFE']->id;
}
...
$markerArray['###ACTION_URI###'] = htmlspecialchars($this->pi_getPageLink($action_pid, '_top'));
...
}
(issue imported from #M4318)
Files
Updated by Christopher Hlubek about 18 years ago
Okay, there's an error in the code snippet. It has to be
$action_pid = isset($this->conf['logoutPid']) ? $this->conf['logoutPid'] : $GLOBALS['TSFE']->id;
Updated by Stefan Strasser over 16 years ago
The extension newloginbox is deprecated since TYPO3 4.2 because it's login-functionality is now integrated into the core as sysext 'felogin'. The new system-extension 'felogin' comes with redirection-functionality including the possibility to set a pid for logout.
The old extension newloginbox is therefore not being maintained anymore with the exception of security-fixes and language-enhancements. See also http://typo3.org/development/articles/release-notes-42/page/3/
Without further notice this bug will be closed soon.