Session values can overwrite local variables
<p>I am developing a Php project on LAMP server. Now i face a problem on session variable and local variable.In my systems first.php set the value in session and then in second.php , i set these session variable to my local variable. Then take action and clear the Session values.But i also loose the value in my local variable.How can i solve this problem?
Structure of coding flow is like as following</p>

<p>In first.php</p>

<pre><code>$_SESSION['var'] = "test";
</code></pre>

<p>In second.php</p>

<pre><code>$var = $_SESSION['var'] ;
$_SESSION['var'] = "";
echo $var;           // at this time ,i cant also see my local variable values
</code></pre>
