Hello,
if i declare:
session_start(); $_SESSION['id'] = $id;
on the main page index.php, will i be able to get that id on another page say main.php just by writing
echo $id or echo $_SESSION['id']
???
Thanks!
on the second page, you will need to put
session_start(); echo $_SESSION['id'];
a page will only be able to access the $_SESSION variables if session_start has been called on that page
adam