Pages

Sunday, January 23, 2011

$_SESSION or session displays in php

<?php
session_start();

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

?>

output :
 Pageviews=2

note :
1) if already the "views" value store 2 then it displays the value "2"