Tuesday, 13 April 2010

How to store session variables?

<?php
session_start();
$_SESSION['views'] = 1; // store session data
echo "Pageviews = ". $_SESSION['views']; //retrieve session data
?>

Cheers!

No comments:

Post a Comment