I have a problem involving the "Login/Status" part of the IIP. Basically I am running a ubbThreads site on one IP address and want users to be able to log in and get their status from a site run from the same server but on a different IP address.
At the moment the following bit of code is always true so it never gets to the else bit down below where it displays the status etc.
require_once('../../forums/ubbthreads/main.inc.php');
// -----------------
// Get the user info
$userob = new user;
$user = $userob -> authenticate();
if (!$user['U_Username']) {
// CODE HERE IS ALWAYS EXECUTED
// this code displays login boxes etc
}
else {
// NEVER GETS HERE
this code displays status of logged in user
The code works fine, if I goto my forum site I have been logged in successfully, it's just that if I go back to my other site it wants me to log in again.
So, has anyone managed to get the login working where the sites are on different IPs?
Thanks
Angus