<?php
session_set_cookie_params(-5000);
session_start();
?>

<html><head></head><body><center>
<h2>

<?php
if (isset($_SESSION['user'])) 
{
	$user = $_SESSION['user'];
	unset($_SESSION['user']);
	session_destroy();
	if (!empty($user))
	{
		echo "<p>You are logged out now.</p><br>\n";
		echo "<p><a href=\"with_sessions_login.php\">Login again.</a></p><br />\n";
	}
	else
	{
		echo "<p>You are not logged in.</p>\n";
		echo "<p><a href='with_sessions_login.php'>Member Login</a></p><br />\n";	
	}
}
else
{
	echo "<p>You are not logged in.</p><br />\n";
	echo "<p><a href='with_sessions_login.php'>Member Login</a></p><br />\n";
}
?>
</h2></center></body></html>
