Bug #21433
closedFE lifetime is ignored
0%
Description
Despite the fact, that i´ve defined a lifetime greater than 0 via the install tool, cookies are always set as session cookies.
In class.t3lib_userauth.php the function call $this->isRefreshTimeBasedCookie() (line 321) gives always FALSE, so the Variable $cookieExpire is set to 0, which results in a session cookie.
So i replaced the function call with the code ($this->lifetime > 0) from isRefreshTimeBasedCookie() into the calling function setSessionCookie() and it worked. It seems that the function call ($this->isRefreshTimeBasedCookie()) doesn`t work properly.
(issue imported from #M15429)
Updated by Lars Malach about 14 years ago
Sun, whats your value in [permalogin] (install tool / All Configuration )? Is the value "-1"? If it is "-1", then the lifetime will be ignored and therefor its not working on your typo3 installation.
The function name "setSessionCookie()", which contains "$this->isRefreshTimeBasedCookie()" (line 321), is confusing. This function sets Cookies for LIFETIME and SESSIONS, because every Cookie in Typo3 is for a Session (which can be for lifetime or a session :-)). Therefor the call of "$this->isRefreshTimeBasedCookie()" is right and is working.
Updated by Dmitry Dulepov over 13 years ago
- Category deleted (
Communication) - Status changed from Needs Feedback to Closed
- Target version deleted (
0)
No feedback provided within 90 days. Closing the issue.