Hello all,
I'm not familiar with PHP session, my question is if session save the values when I brows to another page.
It is possible to keep the session values when I go to other page (in the same domain)?
In one script, let's say a.php I'm doing:
[PHP]
session_start() ;
$_SESSION['fname'] = $row["fname"];
$_SESSION['lname'] = $row["lname"];
header("LOCATIO N: b.php")
[/PHP]
In b.php I'm doing:
[PHP]
print My name is: " .$_SESSION['fname']. " " . $_SESSION['lname'];
[/PHP]
I don't see the content of [PHP]$_SESSION['fname'] [/PHP] and [PHP]$_SESSION['lname'][/PHP]
Thank you,
I'm not familiar with PHP session, my question is if session save the values when I brows to another page.
It is possible to keep the session values when I go to other page (in the same domain)?
In one script, let's say a.php I'm doing:
[PHP]
session_start() ;
$_SESSION['fname'] = $row["fname"];
$_SESSION['lname'] = $row["lname"];
header("LOCATIO N: b.php")
[/PHP]
In b.php I'm doing:
[PHP]
print My name is: " .$_SESSION['fname']. " " . $_SESSION['lname'];
[/PHP]
I don't see the content of [PHP]$_SESSION['fname'] [/PHP] and [PHP]$_SESSION['lname'][/PHP]
Thank you,
Comment