if (!isset($_SESSION["db_user"])) $_SESSION["db_user"] = $_GET["db_user"];
Es hasonlo a jelszora is.