I'm trying to figure out I how can do something like:
console.log('<?php print_r($_SESSION); ?>');
To see the results in the console.
console.log('<?php echo serialize($_SESSION); ?>');
does not work either. Is there a way for me to echo the session information in firebug or inspect element in chrome for testing purposes?