Jump to content

SESSIONS being read ffrom differnet pages


jonniejoejonson

Recommended Posts

I am trying to read a session variable that is set on page1.php from page2.php

 

page1.php>>>>>>

<?

session_start();

$_SESSION['views'] = 1;

?>

<a href="page2.php">link to page2</a>

 

 

 

page2.php>>>>>>>

<?

echo $_SESSION['views'];

?>

 

 

 

why does this not work... thanks alot to any responders. J

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.