Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //List all php sessions available
- function showSessions(){
- echo "<h3> PHP List All Session Variables</h3>";
- foreach ($_SESSION as $key=>$val)
- echo $key.": ".$val."<br/>";
- }
- //To call the function - make sure to include/require functions.php page
- showSessions();
Add Comment
Please, Sign In to add comment