Re: How to display ALL session variables?
| From: | truncatei at gmail dot com | Date: | Thu, 18 Oct 2007 09:16:15 +0000 |
| Subject: | Re: How to display ALL session variables? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263284@lists.php.net to get a copy of this message | ||
2007/10/18, Nathan Nobbe <quickshiftin@gmail.com>:
>
> On 10/18/07, Ronald Wiplinger <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 "<h3>posted variables</h3>";
> > while (list($name, $value) = each($HTTP_POST_VARS)) {
> > echo "$name = $value<br>\n";
> > }
> >
>
> echo '<pre>';
> var_dump($_SESSION);
> echo '</pre>';
>
> -nathan
or use print_r($_SESSION);