session_start();
//Yes i did call session start but forgot to add it here
print $userID.":::";
$_SESSION['id'] = $userID;
$_SESSION['email'] = $userEmail;
$_SESSION['password'] = $userPassword;
$_SESSION['picture'] = $userProfilePicture;
print "ID: ".$_SESSION['id'];
Result: 1:::ID:
I cannot assign any of my variables to the session variables in my code, why is that? I've done it before and the code is identical except for the variables