user->loggedIn) { $app->redirect('login.php'); } $app->user->logout(); $app->session->flash('Du har blitt logget av'); $app->redirect("login.php");