<?
//session_set_cookie_params(60*60*24);
session_start();
?>
<html><body><center>
<?
if (!isset($_SESSION['user']) || empty($_SESSION['user']))
{
	echo "<p align='center'>You are not logged in.</p>";
	echo "<a href='with_sessions_login.php'>Log in</a><BR>";
}
else
{
	$username = $_SESSION['user'];
	echo "<h2>Here are the images</h2>\n";
	echo "List the images ... <br>";
	echo "<a href='with_sessions_upload_images.php'>Upload Images</a><BR>";
	echo "<a href='with_sessions_logout.php'>Log out</a><BR>";
}
?>
</center></body></html>
