Project

General

Profile

Actions

Bug #21433

closed

FE lifetime is ignored

Added by Sun almost 14 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-08-11
Due date:
% Done:

0%

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

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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #51964: FE lifetime is ignored when anonymous userClosed2013-09-12

Actions
Actions #1

Updated by Lars Malach over 13 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.

Actions #2

Updated by Dmitry Dulepov almost 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.

Actions

Also available in: Atom PDF