Project

General

Profile

Actions

Bug #20205

closed

FE lifetime as string

Added by Dan Osipov over 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2009-03-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

For the setting [FE][lifetime], install tool recommends:

Integer, positive. If >0, the cookie of FE users will NOT be a session cookie (deleted when browser is shut down) but rather a cookie with a lifetime of the number of seconds this value indicates. Setting this value to 3600*24*7 will result in automatic login of FE users during a whole week.

BUT, there is the following line, that takes overwrites the default lifetime, by the one from the setting (class.tslib_fe.php):
$this->fe_user->lifetime = intval($this->TYPO3_CONF_VARS['FE']['lifetime']);

If $this->TYPO3_CONF_VARS['FE']['lifetime'] is indeed a string "3600*24*7", the lifetime is set to 3600.

Solution would be to either change the ambiguous description in the Install tool, or add a parsing to calculate the integer value.
(issue imported from #M10723)


Files

10723.diff (2.98 KB) 10723.diff Administrator Admin, 2009-03-26 23:22
Actions

Also available in: Atom PDF