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 Quote 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;" Quote 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 Quote 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 Quote 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); Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/43940-solved-forgotten/#findComment-213369 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.