Search This Blog

$_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"

Share Links

Related Posts Plugin for WordPress, Blogger...