scarface83 Posted March 23, 2007 Share Posted March 23, 2007 Does anyone know the code to display all session variables that are set ? i think it was printf ($_SESSION[]) ; but that doesn't work thanks Link to comment https://forums.phpfreaks.com/topic/43940-solved-forgotten/ Share on other sites More sharing options...
ted_chou12 Posted March 23, 2007 Share Posted March 23, 2007 try "echo $_SESSION;" Link to comment https://forums.phpfreaks.com/topic/43940-solved-forgotten/#findComment-213353 Share on other sites More sharing options...
scarface83 Posted March 23, 2007 Author Share Posted March 23, 2007 just get "array" back Link to comment https://forums.phpfreaks.com/topic/43940-solved-forgotten/#findComment-213354 Share on other sites More sharing options...
ted_chou12 Posted March 23, 2007 Share Posted March 23, 2007 this would definitly work then: foreach ($_SESSION as $a) { echo $a;} Ted Link to comment https://forums.phpfreaks.com/topic/43940-solved-forgotten/#findComment-213355 Share on other sites More sharing options...
jitesh Posted March 23, 2007 Share Posted March 23, 2007 echo " < pre > "; print_r($_SESSION); Link to comment https://forums.phpfreaks.com/topic/43940-solved-forgotten/#findComment-213359 Share on other sites More sharing options...
scarface83 Posted March 23, 2007 Author Share Posted March 23, 2007 thanks all print_r($_SESSION); did exactly what i need Link to comment https://forums.phpfreaks.com/topic/43940-solved-forgotten/#findComment-213369 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.