Project

General

Profile

Actions

Feature #16615

closed

Add the ability to set a pid for logout

Added by Christopher Hlubek over 17 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Should have
Category:
felogin
Target version:
-
Start date:
2006-10-02
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

logoutActionPid.diff (1.18 KB) logoutActionPid.diff Administrator Admin, 2006-10-04 10:42
Actions

Also available in: Atom PDF