Problem Statement
Which superglobal is used to access session variables?
Explanation
The $_SESSION superglobal holds data for the current session, allowing values to be shared across different pages for the same user.
Code Solution
SolutionRead Only
$_SESSION['user'] = 'John';
Practice Sets
This question appears in the following practice sets:
