Like so:

echo"<pre>";
print_r($_SESSION); 
echo"</pre>":

I think for PHP less 4.04, you need $HTTP_SESSION_VARS Instead.

JD

-----Original Message-----
From: Robert Weeks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 8:45 AM
To: php
Subject: [PHP-DB] Viewing Session Varibles


Is there an easy way to get a dump to the page of all session varibles?

I'm trying to create an associtave array in a session varible named cart
($item1 =>$qty1, $item3=>$qty2, etc.) and i can't seem to wrap my brain
around it this morning. I get the item set but can't get the $qty to set.

Thanks,

Robert Weeks


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to