1 2 3 |
echo "Session=". $_SESSION['views']; |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<?php session_start(); if(isset($_SESSION['views'])) $_SESSION['views']=$_SESSION['views']+1; else $_SESSION['views']=1; echo "Views=". $_SESSION['views']; echo "<hr>"; print_r($_SESSION); ?> |