$_SESSION variables not working
<p>As a newcomer to PHP, I need to get $_SESSION variables working as part of a larger project. I am finding that the I cannot transfer data between .php files using $_SESSION variables. I Googled for similar problems and found this solved problem.<a href="http://x10hosting.com/forums/scripts-3rd-party-apps-programming/134814-php-session-not-working.html" rel="nofollow">Same problem</a></p>

<p>I reduced my code to the exact same as the solution to the problem, but it still exists. I have</p>

<p><strong>sesstest.php</strong> </p>

<pre><code>&lt;?php
session_start();
$_SESSION['test']="TEST SESSION TEXT";
header('location:sessreceive.php');
?&gt;
</code></pre>

<p><strong>sessreceive.php</strong></p>

<pre><code>&lt;?php session_start();
echo $_SESSION['test'];
?&gt;
</code></pre>

<p>I have cookies enabled and it is the same in Firefox and IE. The site I'm accessing is a Raspberry Pi on my home network. It is running Apache2 under a Linux version. The session part of my php.ini is </p>

<p><img src="http://i.stack.imgur.com/b1dJQ.jpg" alt="Session section of php.ini"></p>

<p>Could anyone please suggest what might be wrong, as I get no output in sessreceive.php?</p>
