The "Access denied for agent changed" error sometimes occurs in IIS for Ucenter.

Source: Internet
Author: User

I installed Ucenter1.5 using IIS7. FastCgi is used for running.

Use. net to develop related applications and integrate them with UCenter. Logon, registration, sending of short messages, and obtaining of short messages are all correct. However, you cannot directly go to the message center provided by UCenter and always prompt "Access denied for agent changed ".

After tracking the code, we found that the init_input of base. php under the model in the UCenter has a judgment on HTTP_USER_AGENT.

Check whether the UC_KEY and UC_APPID are correctly configured.

The UCenter must go to the user message center. First, send a request to the UCenter (the first communication). After the UCenter returns the address, it will go to the address (the second communication) in redirect ).

The first communication is the UCenter accessed from the server, so be sure to transmit the HTTP_USER_AGENT of the current client browser; otherwise, in the second communication, that is, when the client browser accesses the message center, the HTTP_USER_AGENT is different twice, resulting in the "Access denied for agent changed" error.

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.