Neos.Neos/Classes/Controller/LoginController.php
public function logoutAction()
    {
        $possibleRedirectionUri = $this->backendRedirectionService->getAfterLogoutRedirectionUri($this->request);
        parent::logoutAction();
        switch ($this->request->getFormat()) {
            case 'json':
                $this->view->assign('value', ['success' => true]);
            break;
            default:
                if ($possibleRedirectionUri !== null) {
                    $this->redirectToUri($possibleRedirectionUri);
                }
                $this->addFlashMessage('Successfully logged out', 'Logged out', Message::SEVERITY_NOTICE, [], 1318421560);
                $this->redirect('index');
        }
    }
public function logoutAction()
    {
        $possibleRedirectionUri = $this->backendRedirectionService->getAfterLogoutRedirectionUri($this->request);
        parent::logoutAction();
        switch ($this->request->getFormat()) {
            case 'json':
                $this->view->assign('value', ['success' => true]);
            break;
            default:
                if ($possibleRedirectionUri !== null) {
                    $this->redirectToUri($possibleRedirectionUri);
                }
                $this->addFlashMessage('Successfully logged out', 'Logged out', Message::SEVERITY_NOTICE, [], 1318421560);
                $this->redirect('index');
        }
    }
public function logoutAction ( ) { $ possibleRedirectionUri = $ this -> backendRedirectionService -> getAfterLogoutRedirectionUri ( $ this -> request ) ; parent :: logoutAction ( ) ; switch ( $ this -> request -> getFormat ( ) ) { case 'json' : $ this -> view -> assign ( 'value' , [ 'success' => true ] ) ; break ; default : if ( $ possibleRedirectionUri !== null ) { $ this -> redirectToUri ( $ possibleRedirectionUri ) ; } $ this -> addFlashMessage ( 'Successfully logged out' , 'Logged out' , Message :: SEVERITY_NOTICE , [ ] , 1318421560 ) ; $ this -> redirect ( 'index' ) ; } }
Logs out a - possibly - currently logged in account.
The possible redirection URI is queried from the redirection service
at first, before the actual logout takes place, and the session gets destroyed.

@Flow\SkipCsrfProtection

@return void
Logs out a - possibly - currently logged in account . The possible redirection URI is queried from the redirection service at first before the actual logout takes place and the session gets destroyed .