get("login") == 1) { if (isset($_SESSION["reload"]) && $session->get("reload") == 1) { $session->destroy(); $session->start(); $session->set("finished", 1); $url = "index.php"; header("Location: $url"); echo ''; echo ''; exit; } else { $session->set("reload", 1); } if (isset($_SESSION["status"]) && $session->get("status") == "ok") { $message = $session->get("message"); } } else { $session->set("status", "error"); $session->set("message", "Nicht eingeloggt"); $url = "index.php"; header("Location: $url"); echo ''; echo ''; exit; } ?>