<?php
ob_start();
session_start();
?>
<?php
if (isset($_SESSION['username'])) 
{
	$username = $_SESSION['username'];
	#unset($_SESSION['username']);
	if (isset($_COOKIE[session_name()]))
	{
		setcookie(session_name(),'', time()-50000, '/','',0);
	}
	$_SESSION = array();
	session_destroy();
	echo "<html><head></head><body><center><h2>\n";
	if (!empty($username))
	{
		echo "<p>You are logged out now.</p><br>\n";
		echo "<p><a href=\"current_alumni_sessions.php\">Login again.</a></p><br />\n";
	}
	else
	{
		echo "<p>You are not logged in.</p>\n";
		echo "<p><a href='current_alumni_sessions.php'>Member Login</a></p><br />\n";	
		echo "<a href='new_alumni.php'>New Member</a>\n";
	}
}
else
{
	echo "<html><head></head><body><center><h2>\n";
	echo "<p>You are not logged in.</p><br />\n";
	echo "<p><a href='current_alumni_sessions.php'>Member Login</a></p><br />\n";	
	echo "<p><a href='new_alumni.php'>New Member</a></p>\n";
}
ob_end_flush();
?>
</h2></center></body></html>
