<?php

session_start();

if(isset($_SESSION['views']))

$_SESSION['views'] = $_SESSION['views']+ 1;

else     $_SESSION['views'] = 1;

echo "views = ". $_SESSION['views'];

?>

Tagged with:

Filed under: PHP

Like this post? Subscribe to my RSS feed and get loads more!