I have one PHP script with a session variable, set like so:
$_SESSION[\'VAR1\'] = \"test\"
Now, I am using AJAX via a jQuery-initiated POST
I also caught myself on having one little, tiny, hard to see, space just before "< ? php " This ended up sending information back and disallowing the session to start because header information was already sent. May not be the case for anyone else, but it tripped me up and brought me to this page in search of an answer.