Project

General

Profile

Actions

Feature #19142

closed

Be-User should be redirected to Login-Page if Login has expired

Added by Sebastian Michaelsen almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-07-23
Due date:
% Done:

0%

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

Description

Instead of displaying the annoying "Login-error or session timed-out" error message the BE-User should be redirected to the Login-Page automatically.

I added the modified backendCheckLogin method that I created.

function backendCheckLogin()    {
if (!$this->user['uid']) {
if (!defined('TYPO3_PROCEED_IF_NO_USER') || !TYPO3_PROCEED_IF_NO_USER) {
$url = t3lib_div::locationHeaderUrl(t3lib_div::getIndpEnv('TYPO3_SITE_URL').TYPO3_mainDir.'index.php');
t3lib_BEfunc::typo3PrintError ('Redirecting to Login-Page', '<script type="text/javascript">function redirect_with_framebreaker(){var frames=parent.frames.length;if(frames==0)window.location.href="'.$url.'";}else{parent.location.href="'.$url.'";}}redirect_with_framebreaker();</script>',0));
exit;
}
} else { // ...and if that's the case, call these functions
/* ... */
}
}
(issue imported from #M9032)
Actions

Also available in: Atom PDF