I am getting the error:
Parse error: syntax error, unexpected T_STRING on line 9
and I cannot figure out why.

<?

session_start();
include("dbconf.php");
include("login.php");

if(isset($_COOKIE['cookname']) && isset($_COOKIE['cookpass'])){
	setcookie("cookname", "", time()-60*60*24*365, "\");
	setcookie("cookpass", "", time()-60*60*24*365, "\");
}

if(!$logged_in){
	echo "You are not logged in. Please log in and then log out.";
}
else{
	unset($_SESSION['username']);
	unset($_SESSION['password']);
	$_SESSION = array();
	session_destroy();
	echo "You have successfully logged out.";
}
?>

nevermind, the error was a \ instead of a /

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.