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 #1

Updated by Christopher Hlubek over 17 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;

Actions #2

Updated by Stefan Strasser almost 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.

Actions #3

Updated by Steffen Kamper almost 16 years ago

has open duplicates for felogin

Actions

Also available in: Atom PDF