Session variables in PHP not appearing : <p>I have read all the questions concerning this but I'm still at a loss.
Using a test script like this</p>

<pre><code>// PAGE 1
&lt;?php session_start();
echo var_dump($_SESSION) . "&lt;br&gt;";
$_SESSION[‘session_var’] = "stuff";
$PHPSESSID = session_id();
echo session_id() . "&lt;br&gt;";
?&gt;
&lt;html&gt;
&lt;head&gt;&lt;title&gt;Testing Sessions page 1&lt;/title&gt;&lt;/head&gt; &lt;body&gt;
&lt;p&gt;This is a test of the sessions feature.
&lt;form action="sessionTest2.php" method="POST"&gt; 
&lt;input type= "text" name= "form_var" value= "testing"&gt; 
&lt;input type= "submit" value= "Go to Next Page"&gt; &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;

//PAGE 2
&lt;?PHP session_start(); 
echo var_dump($_SESSION);
$session_var = $_SESSION['session_var']; 
$form_var = $_POST['form_var'];
echo "session_var =" . $session_var. "&lt;/br&gt;"; 
echo "form_var =" . $form_var. "&lt;br&gt;";
$PHPSESSID = session_id();
echo session_id(); 
?&gt;
</code></pre>

<p>the results I get in page 2 are</p>

<pre><code>array(1) { ["‘session_var’"]=&gt; string(5) "stuff" } session_var =
form_var =testing
al89u6vu02lstp99cs4damdn04
</code></pre>

<p>As you can see the variable session_var can be seen in the array but is not being output to the screen where expected, and yes session_start() is at the very top of both pages.</p>

<p>Any ideas what may be wrong</p>
