Php says I have an error in this script where I have noted it. Can anyone see the error here? Much appreciated
[CODE]<?php
session_start();
// User is logging in
if (isset($_POST[“login”])){
if (isset($_POST[“username”]) && ($_POST[“username”]
== “******”) && isset($_POST[“password”])
&& ($_POST[“password”]
== “******”){ // php says this [B]{[/B] should not be there, it looks right to me
$_SESSION[“Authenticated”] = 1;
}
else{
$_SESSION[“Authenticated”] = 0;
}
session_write_close();
header(“Location: protected.php”);
}
// User is logging out
if (isset($_GET[“logout”])){
session_destroy();
header(“Location: login.html”);
}
?>