[BUGFIX] Set LoginProvider selection cookie validity to 3 month 59/40859/3
authorMarkus Klein <markus.klein@typo3.org>
Thu, 2 Jul 2015 13:41:31 +0000 (15:41 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 2 Jul 2015 21:59:47 +0000 (23:59 +0200)
The cookie's expire time is changed from session to +90 days
as otherwise the cookie makes no sense.

Resolves: #67891
Releases: master
Change-Id: I778b096c21a48be9e601ea0d03ca57eec263dd40
Reviewed-on: http://review.typo3.org/40859
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
typo3/sysext/backend/Classes/Controller/LoginController.php

index afa4cd4..460ab45 100644 (file)
@@ -464,7 +464,7 @@ class LoginController {
                        reset($this->loginProviders);
                        $loginProvider = key($this->loginProviders);
                }
-               setcookie('be_lastLoginProvider', $loginProvider);
+               setcookie('be_lastLoginProvider', $loginProvider, $GLOBALS['EXEC_TIME'] + 7776000); // 90 days
                return $loginProvider;
        }