My discuz! X2, ucenter 1.6, ASP. NET application integration experience

Source: Internet
Author: User
Tags exit in

For ASP. NETProgramIt is a bit awkward to integrate PHP applications, but there is no way to do it. It is inevitable to do this. Now, let's proceed.

Step 1: Prepare relevant programs

1. Download The discuz X2 Program

2. Configure the PHP environment in Windows 2003

3. Install the discuz X2 program and select a new installation (including ucenter 1.6)

4. Download The ucenter. Net version of the API. (http://ucenterapidotnet.codeplex.com /)

This application is modified by a hero. Net 4.0. Thank you. Some of the Communication Principles of ucenter are introduced in his blog. If you are interested, visit:

Http://www.dozer.cc/2011/01/ucenter-api-in-depth-1st/

5. If your. Net program runs in the 4.0 environment, you need to modify the downloaded source code.

Where the p3p protocol is used in ucapibase. CS, the source code is as follows:

Response. headers. Add ("p3p", changed:

Response. appendheader ("p3p ",

Step 2: Refer to here, I don't code word http://www.cnblogs.com/CoreCaiNiao/archive/2011/08/25/2153434.html

If the above communication is successful! Congratulations! You are half done.

Now the problem is solved. You can log on and exit at the WWW site, and log on and exit simultaneously with X2. However, the logon and exit of X2 won't synchronize the login and exit of WWW, it is found through a systematic monitoring method. No API (UC. php) set in application management is called for logon and exit in X2. I do not understand PHP either.CodeI finally found a link to the original article (unconventional means) to solve this problem.

Note: when updating the cache, it is not the update cache in the ucenter, but a tool such:

After the cache is updated, log on to and exit from the X2 forum, and the operation will be synchronized. This problem may not occur if it is an earlier version of ucenter. I did not test it.

 

I solve the password synchronization modification problem in this way.

The password modified in X2 can only be valid for Logon in X2. After the password is changed on the master site, the password in X2 is updated during the logon on the master site, and synchronous logon is performed.

 

Record it. I hope this article will be useful to you.

Thanks to Dozer and the active CaterpillarArticle

 

 

 

 

 

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.