Code:
<?php
session_start();
if (isset($_SESSION['foodcounter'])) {
echo '<p>Welcome, you visited this page ' . $_SESSION['foodcounter'] . ' times before.</p>';
$_SESSION['foodcounter'] = $_SESSION['foodcounter'] + 1;
echo '<p>we have all types of food here american, african, japanese, chines, italian, indian and many more.</p>';
echo '<p>OFFER, FREE HOME DELIVERY, if we are even a second later than 30 min the food is free.</p>';
} else {
echo '<p>Welcome, this is your first visit to our website.</p>';
$_SESSION['foodcounter'] = 1;
}
Bookmarks