MENU
Session Variables
Accessible to all web pages, a session variable can be set or accessed with $_SESSION. It lasts until the user has closed the browser.One must first start up a session before information can be stored in a session. session_start() has to be used before the <html> tag.
RESETRUNFULL
<?php session_start(); ?>
<!DOCTYPE html>
<html>
<body>
<?php
if(isset($_SESSION['views']))
$_SESSION['views']=$_SESSION['views']+1;
else
$_SESSION['views']=1;
echo "Views=". $_SESSION['views'];
?>
</body>
</html>