I want to see the content of the the array $_SESSION with the command print_r($_SESSION) but what I get is just the following output:
Array ()
what am I missing ?
thanks
Make sure you call session_start()
at the top of all the pages you wish to use the session.
http://php.net/manual/en/function.session-start.php
<?php
session_start();
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With