0) { $_SESSION["user"] = $_POST["name"]; $_SESSION["pwd"] = hash('sha256',$_POST['pwd']); } else $err = "Failed to log in."; } if($_GET["jew"] == "true") session_destroy(); ?>