Hi guys.
This is just a quick one.
I am in the process of learning about sessions.
In the book I am reading, it is explaining how to create a user login system.
I understand most of it, so I only have one question to be honest.
In the book I am reading, it goes on to explain how the code works and it states:
The script starts by creating a new session (or picking up an existing one) with session_start() .
The thing is, I don't know much about how php picks up an exisitng session.
I need to ask:
1) For a file to pick up an existing session, does that existing session need to have been created in the same file?
Or can it be the opposite?,,, for example, lets say we have 2 pages (part of the same site):
firstpage.php
and
secondpage.php
Lets say "firstpage.php" creates a session to begin with.
If "secondpage.php" creates a session, is "secondpage.php" going to pick up this exisitng session created by "firstpage.php"?
Or is "secondpage.php" session going to be a fresh, unique session to that page only?
Paul.