Session var not accessible in my script
<p>I have two <code>$_SESSION</code> variables impossible to access in any script of my page but it's sure they exist in the PHP code of the same page when I use <code>echo</code> to display their values.</p>

<p>I can display in jQuery every classical PHP variables I want with the following code, but it's impossible when they are <code>$_SESSION</code> variables :</p>

<pre><code>&lt;?php if( isset($_SESSION['id']) ){ 
    echo $_SESSION['id'];   // it displays the value
} ?&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function() {  

$("#some_button").click(function(){
    var a = &lt;?php echo $_SESSION['id']; ?&gt;; 
    alert(a);
});         
}); 
&lt;/script&gt;
</code></pre>

<p>I don't understand why honestly...</p>
