"; if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } if($_SESSION['count']>5 && $_SESSION['count']<=15) { echo "Since you have been here 5 or more times, you are now a regular
"; } else if ($_SESSION['count']>15) { echo "Seriously, you need to get off the computer
"; } echo "You have been here ".$_SESSION['count']." times
"; $_SESSION['var1'] = "Session"; $_SESSION['var2'] = "data"; $_SESSION['var3'] = "is"; $_SESSION['var4'] = "handled"; $_SESSION['var5'] = "by"; $_SESSION['var6'] = "an"; $_SESSION['var7'] = "array."; echo " "; foreach ($_SESSION as $i){ echo $i." "; } echo "
"; foreach ($_SESSION as $key => $value){ echo $key." "; } echo "
"; echo "
"; echo "
"; echo "
"; $string = session_encode(); echo $string."
"; session_write_close(); ?>