Can't pass php session variable to javascript string variable
While the $_SESSION['Id'] variable exists, the javascript can't seem to bring it at least with this syntax:
CODE
<?php session_start(); ?>
<script>
var a = "<?php echo $_SESSION['Id']; ?>";
alert(a);
</script>
var_dump$_SESSION?