'tcp', 'host' => '192.168.122.1', 'port' => 6379, 'database' => 2, ]); $correct_hash = $redis->get($mail); if ( $hash === $correct_hash ) { $_SESSION["login"] = true; $_SESSION["success"] = "Erfolgreich eingeloggt."; $_SESSION["user"] = $mail; $_SESSION["dontdisplaydeploybutton"] = 1; header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); header("Location: /"); exit; } else { $_SESSION["login"] = false; $_SESSION["error"] = "Entweder kennen wir deine E-Mail nicht oder du hast den Code falsch kopiert."; header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); header("Location: /login.php"); }