For example, your system has a login function, before the system to log in to execute the following code, first apps.php all the site first login once
<meta charset= "UTF8" ><?PHPinclude' Config.inc.php ';include' Uc_client/client.php '; List($uid,$username,$password,$email) = Uc_user_login ("Fleam", "Fleam"); Setcookie(' Example_auth ', ',-86400); //User Login success, set cookies, encrypt directly with Uc_authcode function, users use their own functions Setcookie(' Example_auth ', Uc_authcode ($uid." \ t ".$username, ' ENCODE ')); //generate code for synchronous logins $ucsynlogin= Uc_user_synlogin ($uid);//This method will eventually visit all the sites in apps.php, and use JS one by one to access the landing, in order to achieve the purpose of unified landingEcho' Login succeeded '.$ucsynlogin;?>
Ucenter communication after the success of apps.php after the correct thing to do