On my site, if you display the value of a variable in a session, for example:
then it sees everything from the script
index.php , and if it accesses the same variable from another script, it is located in the nested directory, then it displays an empty value. What is the reason? Or I did not quite understand the scope of the sessions.
/*index.php*/ ... echo $_SESSION["key"];// 1234567890
/*mydir/msg.php*/ echo $_SESSION["key"];// пусто!!!