ucenter中discuz與官方的例證不能同步登入和退出

來源:互聯網
上載者:User
ucenter中discuz與官方的例子不能同步登入和退出

我使用的是discuz X3.1版本。
下載了UCenter_1.6.0_SC_UTF8
現使用官方的例子
\UCenter_1.6.0_SC_UTF8\advanced\examples下面的ucexample_1.php
ucenter與ucexample_1.php通訊成功(ucenter有顯示通訊成功)。
從discuz上面登陸退出,ucexample_1.php可以登陸退出。
但是從ucexample_1.php登陸退出,discuz卻無法同步登入退出。到底是什麼原因呢?求指點。
------解決方案--------------------
怎麼可能呢?肯定是你哪兒弄得不對了
都是一個娘養的,怎麼成了別人?
------解決方案--------------------
使用uc_user_synlogin後,返回的script要輸入到頁面執行,才能保證其它應用同步登入

http://faq.comsenz.com/library/UCenter/interface/interface_user.htm

原理就是通過script 的src屬性來設定/刪除其他網站下的cookie
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.