Feature #55831

Different scenarios for session settings

Added by Aimo Künkel over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-02-10
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

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 inNew2014-03-11

Actions
Related to TYPO3.Flow - Feature #46063: Implement username password provider with "remember me" persistent cookieNewChristopher Hlubek2013-03-06

Actions

No data to display

Also available in: Atom PDF