Welcome Guest, Not a member yet? Register   Sign In
How to display all session variables
#2

[eluser]edjon2000[/eluser]
Hi fserrano,

all you need to do is modify your code slightly, instead of
Code:
echo "<pre>";
echo print_r($this->session()); // or echo print_r($_SESSION);
echo "</pre>";
use
Code:
echo "<pre>";
print_r($this->session); // or print_r($_SESSION);
echo "</pre>";

print_r is a command so doesn't need to be echoed.

another thing you can try if you need to identify data types as well, is
Code:
echo "<pre>";
var_dump($this->session); // or var_dump($_SESSION);
echo "</pre>";


here is a link with further information http://php.net/manual/en/function.print-r.php


Hope this helps you
Jon


Messages In This Thread
How to display all session variables - by El Forum - 01-14-2011, 09:01 AM
How to display all session variables - by El Forum - 01-14-2011, 09:12 AM
How to display all session variables - by El Forum - 01-14-2011, 09:21 AM
How to display all session variables - by El Forum - 01-14-2011, 09:30 AM
How to display all session variables - by El Forum - 01-14-2011, 10:31 AM
How to display all session variables - by El Forum - 01-14-2011, 11:50 AM
How to display all session variables - by El Forum - 01-14-2011, 12:03 PM
How to display all session variables - by El Forum - 01-14-2011, 12:58 PM
How to display all session variables - by El Forum - 01-14-2011, 03:47 PM
How to display all session variables - by El Forum - 01-14-2011, 03:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB