[FLOW3-general] Session timeout after login

Phallin Hor phallin at web-essentials.asia
Tue Sep 4 09:36:04 CEST 2012


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;
		}
	}


More information about the FLOW3-general mailing list