Here is the test and the test runs fine, no issues.
I added the code in the header, the page still doesn't work. When I add the code you provided to right before the /body tag, the page is blank and does not load at all.
<?pre><?php var_dump($_SESSION); ?><pre>
is giving me a syntax error....