Re: How to display ALL session variables?

From: Date: Thu, 18 Oct 2007 10:03:24 +0000
Subject: Re: How to display ALL session variables?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-263286@lists.php.net to get a copy of this message
truncatei@gmail.com wrote:
2007/10/18, Nathan Nobbe <quickshiftin@gmail.com <mailto:quickshiftin@gmail.com>>:
    On 10/18/07, Ronald Wiplinger <ronald@elmit.com
    <mailto:ronald@elmit.com>> wrote:
Is there a simple way to display all session variables? Like the
    code
below I use in debug for all posted variables:
    echo '<pre>';
    var_dump($_SESSION);
    echo '</pre>';
    -nathan
or use print_r($_SESSION);
I tried: <?php echo '<pre>'; var_dump($_SESSION); echo '</pre>'; echo '<p>above as var_dump(D_SESSION) - below as print_r(D_SESSION)'; print_r($_SESSION); ... However, I only see: above as var_dump(D_SESSION) - below as print_r(D_SESSION) What is the obviously part I am missing? bye Ronald

« previous php.general (#263286) next »