[FLOW3-general] Session timeout after login
Phallin Hor
phallin at web-essentials.asia
Tue Sep 4 10:28:23 CEST 2012
On 09/04/2012 03:08 PM, Thomas Plessis wrote:
> I think it's a bug : http://forge.typo3.org/issues/40563
>
> regards,
>
> Thomas Plessis
> Développeur multimédia
> --
> TOTEMnumerique
> 9, Place St Étienne
> 31000 Toulouse
> T. 05 61 14 64 54
> F. 05 61 14 64 55
>
> Le 4 sept. 2012 à 09:36, Phallin Hor a écrit :
>
>> Hi all,
>>
>> I have a problem with authentication in flow3. My problem is that I want to redirect to the login page after the session is timeout. I have set the session timeout to 1 hour. However, I got an error message:
>>
>> #1258721059: The security context contained no tokens which could be authenticated. (More information)
>> TYPO3\FLOW3\Security\Exception\AuthenticationRequiredException thrown in file
>> /home/phallin/dev/Study.Blog/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Security_Authentication_AuthenticationProviderManager_Original.php in line 143.
>> Reference code: 20120904085809f7500b
>>
>> Below is my configuration in Settings.yaml and in my controller:
>>
>> Configuration/Settings.yaml
>> TYPO3:
>> FLOW3:
>> session:
>> inactivityTimeout: 3600
>>
>> loginController.php
>> public function authenticateAction() {
>> try {
>> $this->authenticationManager->authenticate();
>> $this->redirect('index', 'Book');
>> } catch (\TYPO3\FLOW3\Security\Exception $exception) {
>> $this->addFlashMessage('Wrong username or password.');
>> throw $exception;
>> }
>> }
>> _______________________________________________
>> FLOW3-general mailing list
>> FLOW3-general at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>
Thank you so much for your reply.
More information about the FLOW3-general
mailing list