Is it possible to view all the current session variables?
In the same way you can view the contents of a variable by using:
[syntax=php]echo '<pre>'; print_r($myVar); echo '</pre>';[/syntax]
I would like to do the same but be able to view the session variables?
View All Sessions
Moderator: General Moderators
Yep
Remember that all session values are held in the $_SESSION array. Same goes for $_POST, $_GET, $_SERVER and a few others.
Code: Select all
<?php
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
?>-
Cruzado_Mainfrm
- Forum Contributor
- Posts: 346
- Joined: Sun Jun 15, 2003 11:22 pm
- Location: Miami, FL