In this part of the tutorial we will learn how to get all session variable and its values. And we will also see the example related to the session.
All session variables and its values are maintained by the the super global variable $_SESSION.
$_SESSION is an associative array. It keeps the session data in
key and value form.
session_start() starts the session.
After execution of the php file variable names and values
gets stored in the session.
Example of PHP List All Session Variables