Ok, I'm still struggling
I've found this article:
http://www.phpbuilder.com/columns/chriskings20001128.php3?page=1but can't get it to work.
I've updated my apache config no problem and have added:
$domains['domain1'] = "http://<mydomain>/-$sessionid-";
$domains['domain2'] = "http://<mydomain>/-$sessionid-";
to main-inc.php.
Then I've put:
global $HTTP_COOKIE_VARS, $HTTP_GET_VARS;
if (isset($sessionid) && isset($HTTP_GET_VARS['sessionid']) && ($HTTP_COOKIE_VARS['sessionid'] != $HTTP_GET_VARS['sessionid'])) {
SetCookie('sessionid', $HTTP_GET_VARS['sessionid'], 0, '/', '');
$HTTP_COOKIE_VARS['sessionid'] = $HTTP_GET_VARS['sessionid'];
$sessionid = $HTTP_GET_VARS['sessionid'];
}
at the start of ubbt.inc.php (I think this is where the cookie is created, right?) and my page where my login stuff is.
but (rather obviously I thought) the $sessionid variable doesn't equal anything at this point so the code within the if statement is never executed
If anyone could point me on the right track I would really appriciate it, this is doing my head in.
Thanks
Angus