hairybobby — 2011-05-16T11:34:57-04:00 — #1
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>
starlion — 2011-05-16T11:41:38-04:00 — #2
What does session2.php contain? Same thing?
hairybobby — 2011-05-16T11:48:37-04:00 — #3
Yes session2.php contains roughly the same thing except session2.php links back to session1.php
starlion — 2011-05-16T12:03:09-04:00 — #4
Try taking the @ out of in front of session_start and see if it kicks an error at you?
anil_singh — 2011-05-17T05:11:53-04:00 — #5
plz start the session on the session2.php page as well.....