Oturum değerlerin yerel değişkenler üzerine yazabilir

0 Cevap

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

First.php '

$_SESSION['var'] = "test";

Second.php yılında

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

0 Cevap