Why my sessions variables have been automatically unset when i redirect to then same script?
<p>I have set a session variable in testmysql.php named foo  and i redirect the script to them same script again where I print the session var and then unset it .. However, the session var seems to have been unset already when I have redirected ..Why is this and how do i sort this out ?</p>

<pre><code>&lt;?php 

session_start();

if(empty($_GET)) {
    $_SESSION['foo'] = 'bar';
    header("location:testmysql.php?redirect". '=' . 'bar');
}

var_dump( $_SESSION);
unset ($_SESSION['foo']);
</code></pre>
