Hi, I need help please. i spent the last 6 hours looking EVERYWHERE for help about using PHP session across web pages. The $_SESSION variable is supposed to be global, right? but I can only access it on the page it was declared. like:
//PAGE 1 this works
<?php
session_start();
$_SESSION ['login'] = 1;
echo $_SESSION ['login'];
BUT WHEN I TRY TO ECHO THE SAME THING IN MY NEXT WEB PAGE IT DOESN'T WORK :((
//PAGE 2 this doesn't work :(
<?php
session_start();
echo $_SESSION ['login'];
HELP PLEASE!!! :(( I'm tired i'm giving up:((