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.