Which PHP session settings are incorrect here?
- by Greg McNulty
I see the savepath has no value but does it default to something? Are the other values OK? I have access to the server and PHP files but how and what do I change?
The specific issue -
On page 1:
session_start();
$_SESSION['uType']=$row['usertype']; //save user type to session
print_r($_SESSION); //Prints the user type successfully
On page 2:
session_start();
print_r($_SESSION); //BLANK??
Observed:
Page 1 displays the session data.
However, there are NO cookies created anywhere on the browser?
Page 1 does a require to display page 2.
Page 2 does not contain the session data.
Using FireFox as the target browser (looking at cookies with web developer add-in)
How do I get the session to work across all pages?
Thank You and yes I am a newbie at this.