Project

General

Profile

Actions

Bug #32274

closed

sessionTimeout for BE has does not work

Added by Simon Schaufelberger almost 11 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2011-12-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

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.

Actions #1

Updated by Markus Klein almost 11 years ago

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

Actions #2

Updated by Michael Stucki almost 11 years ago

  • Category set to Backend API
  • Status changed from New to Needs Feedback
  • Complexity set to easy
Actions #3

Updated by Michael Stucki almost 11 years ago

Sounds logical indeed. I suggest to replace the is_string check with t3lib_utility_Math::canBeInterpretedAsInteger().

Actions #4

Updated by Gerrit Code Review almost 11 years ago

  • Status changed from Needs Feedback to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7079

Actions #5

Updated by Gerrit Code Review almost 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7079

Actions #6

Updated by Gerrit Code Review almost 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7079

Actions #7

Updated by Mario Rimann almost 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Gerrit Code Review almost 11 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/7353

Actions #9

Updated by Gerrit Code Review almost 11 years ago

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/7354

Actions #10

Updated by Gerrit Code Review almost 11 years ago

Patch set 2 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/7354

Actions #11

Updated by Mario Rimann almost 11 years ago

  • Status changed from Under Review to Resolved
Actions #12

Updated by Benni Mack almost 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF