Issue Feature Closed

#16615Add the ability to set a pid for logout

Christopher Hlubek 10/02/06, 13:30 updated 06/27/08, 16:33

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.