Ucenter Integration of Third-party Network application principles

Source: Internet
Author: User
Keywords Integration Ucenter Web applications
Tags aliyun application applications business community data different direct

Ucenter is a Comsenz of the various products of the direct transmission of information between the bridge, through the Ucenter webmaster can seamlessly integrate Comsenz series of products, to achieve the user's one-stop login and community data interaction.

Ucenter has a well-established interface, a simple modification can be linked to any other platform of the Third-party network applications, at any time for your http://www.aliyun.com/zixun/aggregation/9262.html "" "Community forum to increase energy.

Let's take a look at Ucenter integration of Third-party Network application principles, the following content from two aspects to explain the idea of integration!

(1) If the integration of users:

Integration of the application changes are very small, the original database does not move, the original write cookies code do not move, the original write database session code do not move, the original program also do not have to move, just change the following 4 files:

login.php register.php logout.php Modify the password file. php

The statements and logical structures that are added to and Ucenter API communication in 4 files.

There is another need to add a new file uc.php for Ucenter, which is the file that the application receives instructions from Ucenter and executes.

A total of 4 documents and one additional document were converted.

(2) If the integration station letter pm, friends, Avatar and other functions, ideas and methods and the integration of users similar.

In addition, users registered between different systems will be activated when they first log on to a system that has never logged in. This activation allows users to refine their information in this application, such as enterprise registration data. The data is imperfect and cannot be activated.

such as in the BBS register a user test, the first time to come to the Business-to-business program, at this time, and will not automatically login, but to require users to activate, and test in the BBS registration field and the requirements of the different business-to-business. Then let the user improve the information. The second time will automatically log in.

User Login As an example, other cancellation, change password, news, Avatar, friends are similar.

1. User xxx In the login.php of an application, enter the username, password.

First enable the Uc_user_login function to UC server to authenticate this user and password, if correct, then write session, and update the application member table login IP, logon time. The user does not feel the process.

2. Then through Uc_user_synlogin notify UC Server user XXX login successfully, this process may use Ajax, the user does not feel the notification process.

3. UC server received this message, immediately ordered the staff, the XXX login message, like Token Ring, issued to all willing to receive (in the background whether to open synchronous login) The message of other applications. In fact, with a parameter access to the uc.php of each application, the user does not feel the process.

4. The application relies on the uc.php of the API to receive the message from UC server, and to the UC server to do whatever they want. Now, receive the command to have the XXX user log in to your program and execute it immediately.
and write the session of the application, and use P3P, writing cookies to the same domain or to different domains. The user does not feel the process.

5. Finally all and UC integration procedures, XXX login successfully. When a user logs on from a site, skipping to another subweb also displays the login. Because the BBS and news system in the background are logged in.

6. The application ends with the UC server session.

Through the above explanation, you should have a general understanding of the Ucenter integration of Third-party Web applications! Start your integration!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.