I have tried using the session command with little sucess. I have two pages session1.php and session2.php and links back and forth between the two. The variable should increase each page but it doesn't. I am not sre what I am doing wrong. Here is the code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
$_SESSION['views'] = 1;
echo "views = ". $_SESSION['views'];
<a href="session2.php">page 2</a>
What does session2.php contain? Same thing?
Yes session2.php contains roughly the same thing except session2.php links back to session1.php
Try taking the @ out of in front of session_start and see if it kicks an error at you?
plz start the session on the session2.php page as well.....