index.php
<?php /* this is INDEX page the main page of the site known as home page */
session_start(); /*required to initiate session data i.e if the user is logged in */
if($_SESSION['logged_in']==1) { /* we wouldn't know if the member is logged but do know $_SESSION */
die("<p>You are already logged in</p>"); /*message showing that the member is already logged in ...*/
}
?>
<html>
<head><title>Simple eStore Lesson - Home Page</title></head>
<body>