Feature #55831

Different scenarios for session settings

Added by Aimo Künkel over 1 year ago. Updated over 1 year ago.

Status:New Start date:2014-02-10
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
PHP Version: Complexity:
Has patch:No

Description

What i'd really love is something like this to easily offer some
[ ] keep me logged in
login form functionality

TYPO3:
  Flow:
    session:
      # this is the default - doesn't break backwards compatibility
      inactivityTimeout: foo
      scenarios:
        myScenario1: # the user wants to be remembered
          # set timeout to one year
          inactivityTimeout: 31536000
        myScenario2: # the user logged in from an internet café
          # set timeout to 30 minutes
          inactivityTimeout: 1800

and in the controller

public function authenticateAction() {
    ...
    if ($keepMeLoggedIn) {
        $someObjectWhereYouWouldSetThis->setScenario('myScenario1');
    }
    ...
}

If the scenarios would then inherit from the default, you have everything you need to build your own configuration sets.


Related issues

related to TYPO3.Flow - Feature #56744: stay logged in New 2014-03-11
related to TYPO3.Flow - Feature #46063: Implement username password provider with "remember me" p... New 2013-03-06

Also available in: Atom PDF