While I'm at it, if my first try didn't do the trick, this snippet may help you figure out what you want to do. It is really two different approaches.
- PHP: Select all
foreach ($_SESSION as $k => $v) {
echo '<br />$_SESSION[' . $k .'] ';
echo "is set to $v. <br />";
global $$k;
echo "$$k has a value of $v. <br />";
}
I use something like this sometimes with an intro "The following session variables are set".