Bug #32274
closed
sessionTimeout for BE has does not work
Added by Simon Schaufelberger almost 13 years ago.
Updated about 6 years ago.
Description
Hello,
i setup the following config in localconf.php:
$TYPO3_CONF_VARS['BE']['sessionTimeout'] = '86400';
the problem is that after about 1 hour of inactivity i get the login screen so the setting that i will be logged in for 1 day does not work.
TYPO3 version: 4.5.
Hi Simon!
I guess the problem is this (t3lib_userauth, line 772):
// A user was found
if (is_string($this->auth_timeout_field)) {
$timeout = intval($user[$this->auth_timeout_field]); // Get timeout-time from usertable
} else {
$timeout = intval($this->auth_timeout_field); // Get timeout from object
}
The check is with is_string().
Can you try if it works with the setting
$TYPO3_CONF_VARS['BE']['sessionTimeout'] = 86400;
Regards
Markus
- Category set to Backend API
- Status changed from New to Needs Feedback
- Complexity set to easy
Sounds logical indeed. I suggest to replace the is_string check with t3lib_utility_Math::canBeInterpretedAsInteger().
- Status changed from Needs Feedback to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF