Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print all session variables that are currently set 1

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
Hi there,
Is it possible to pring all session variables and its values (if they have values set).

I know we can print a single session variable value by somthing like
echo "+++".$_SESSION['variable1']."+++";

but I was wondering if we can print all of them without specifying a particular variable.

Thanks!
 
You could use
Code:
print_r ($_SESSION);
To print everything that is in the $_SESSION array.
 
That was just what I was looking for!
thanks :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top