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