Hi,
Can you tell me why the $app->response->redirect("/"); is not working? It executes the code when there is no session but never redirects. It never sends a response.
Please help!
$eventManager->attach('micro', function($event, $app) {
    if ($event->getType() == 'beforeExecuteRoute') {
        if ($app->session->get('auth') == false) {
            $app->response->redirect("/");
            //Return (false) stop the operation
            return false;
        }
    }
});Thanks, Stefano