Actions
Feature #19142
closedBe-User should be redirected to Login-Page if Login has expired
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)
Updated by Christian Kuhn about 15 years ago
Resolved, fixed:
This has been solved in #19152 with a new "login expired popup" in TYPO3-4.3.0-alpha2.
Actions