Ah - clearly I'm a newbie - I'm not passing the Session ID. I've had a quick look at the php manual - there two ways to pass the session - either through URL or cookies.
Cookies are not really ideal as they are not always available at the client. So I'm going to try to implement the URL method.
I see theres a function session_id() does this get populated by php when a new session is started? Or do I have to generate a unique ID and set the session ID to this myself?
Currently I have another file - global.php that has session_start() in it. I then include global.php at the beginning of all my pages.
So should I do the following:
if ($_REQUEST['SID']!="")
{
session_id($_REQUEST['SID']);
}
session_start();
This way if a SID is passed by through the URL its is set as the current session ID