i want to know if after i store a value in the $_SESSION, can i access it several times in different files?? for example i stored a value: $_SESSION['login']="Fred"
can i access that value in different files in different times??
for example:
b.php
<?php
session_start();
$uname=$_SESSION['login'];
?>
c.php
<?php
session_start();
$uname=$_SESSION['login'];
?>
d.php
<?php
session_start();
$uname=$_SESSION['login'];
?>
is this possible??
Yes, It is possible.
See PHP Session with details.
Note: PHP Session are meant to be that way, Unless you desrtoy it OR they are expired.