I had this question in a quiz: Once a session is started, all data related to the session is accessible through the $_SESSION superglobal. A. True B. False
My answer was false, because I thought only the data stored explicitly like this: $_SESSION["something"] = "something", is accessible. But I the correct answer was true.
So, what else can I get from this superglobal? Or maybe it's just the wording issues, the actual question was asking everything in this session stored like this can be accessible?
$_SESSION superglobal may be to use only with session. When you pass data with session also, you can get data with it. Data types can be string, int,float,array etc.
For example: