I've managed to get the single-sign-on to work if I manually set the values within client.php:
$account['uid'] = 4;
$account['name'] = "John";
$account['mail'] = "here@there.com";
$account['avatar'] = ''; //not used as of now
but when I try to use anything defined elsewhere, it doesn't work, such as:
if($_SESSION['userDetails']['id']){
$account['uid'] = $_SESSION['userDetails']['id'];
$account['name'] = $_SESSION['userDetails']['username'];
$account['mail'] = $_SESSION['userDetails']['email'];
$account['avatar'] = ''; //not used as of now
}
or even just variables which I've defined in test.php called by a require statement within index.php :
$account['uid'] = $uid;
$account['name'] = $name;
$account['mail'] = $email;
$account['avatar'] = ''; //not used as of now
Any ideas?
Many Thanks,
Rob
I've managed to get the single-sign-on to work if I manually set the values within client.php:
````
$account['uid'] = 4;
$account['name'] = "John";
$account['mail'] = "here@there.com";
$account['avatar'] = ''; //not used as of now
````
but when I try to use anything defined elsewhere, it doesn't work, such as:
````
if($_SESSION['userDetails']['id']){
$account['uid'] = $_SESSION['userDetails']['id'];
$account['name'] = $_SESSION['userDetails']['username'];
$account['mail'] = $_SESSION['userDetails']['email'];
$account['avatar'] = ''; //not used as of now
}
````
or even just variables which I've defined in test.php called by a require statement within index.php :
````
$account['uid'] = $uid;
$account['name'] = $name;
$account['mail'] = $email;
$account['avatar'] = ''; //not used as of now
````
Any ideas?
Many Thanks,
Rob