Testing Session Variables

Conclusion: Interrogating and displaying SESSION variables does not destroy them.

Display Session One Directly

$_SESSION['One'] = Test One

Display Session Two via a Variable ($v_two)

$v_two = Test Two

Now print all variables using Print_r ($_SESSION)

Array ( [One] => Test One [Two] => Test Two [Three] => Test Three [Four] => Test Four )

Now go to test_session_variables2.php to see what variables are available.

Return to Test Directory Home Page