Which one of the following statements should you use to set the session username to Nachi?
A
$SESSION = “Nachi”;
B
$_SESSION = “Nachi”;
C
session_start(“nachi”);
D
$SESSION_START = “Nachi”;
Correct Answer: $_SESSION = “Nachi”;
You need to refer the session variable ‘username’ in the context of the $_SESSION superglobal.