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'];
结果:1:::ID:
我无法将任何变量分配给代码中的会话变量,这是为什么呢?我以前做过,除了变量之外,代码是相同的