PHP Coding Tips

Monday, August 20, 2012

PHP Print state of a session

If you want to print all current variables stroed in session just use print_r function, as exaple shows:print_r( $_SESSION ); This will print all varaibles previously set in current session. Don't forget to call session_start() earlier to start a browser session

2 comments: