So did you try making the change I noted above? If so, was the error message displayed?
Also, you should make sure that display_errors is set to On and error_reporting is set to E_ALL because you should be getting this error message:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
Why? Because your syntax for referencing an item in an array is invalid. I normally concatenate when I use arrays in strings:
echo 'Your name is: ' . $_SESSION['name'] . ' !';
though you can also use this syntax:
echo "Your name is: $_SESSION[name]!";
Make sure you don't combine the two, though, as this is not correct:
echo "Don't ever do this: " . $_SESSION[name];
For more information on this syntax, see this manual page.