Session is not working
<p>In my local machine and online server,
i have a folder 'test'  and three files in it <code>(one.php,two.php,three.php) .</code></p>

<h1>one.php</h1>

<pre><code>&lt;?php
ob_start();
session_start();
$_SESSION['one'] = 1;
header('Location:two.php');
exit();
?&gt;
</code></pre>

<h1>two.php</h1>

<pre><code>&lt;?php
ob_start();
session_start();
$_SESSION['two'] = 2;
header('Location:three.php');
exit();
?&gt;
</code></pre>

<h1>three.php</h1>

<pre><code>&lt;?php
ob_start();
session_start();
echo '&lt;pre&gt;';print_r($_SESSION);
?&gt;
</code></pre>

<p>while i take one.php in browser i getting an output</p>

<p><strong>//Local machine</strong></p>

<pre><code>array[one] =1  
array[two] =2
</code></pre>

<p><em>this is correct</em></p>

<p><strong>// Online Server</strong></p>

<pre><code>array[one] =1
</code></pre>

<p><em>this is not correct</em></p>

<p>What is wrong with this?
i donot getting any warning, </p>

<p>Anyone please tell me, what is the problem?</p>
