Is PHP session data associated with a particular web page or PHP file? In other words, if a session is created in foo.php, would it's session data be accessible from bar.php, assuming that neither reference the other and both are accessed directly from the web browser.
If it is file specific, how does this work with include()
s? For example, if foo.php
creates a session, then includes bar.php
, can the code in bar.php
access session data? How about if the session is created in bar.php
? Would the data then be specific to bar.php
or foo.php
?