Home  >  Article  >  Backend Development  >  ucenter中discuz与官方的例证不能同步登入和退出

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

WBOY
WBOYOriginal
2016-06-13 12:06:071385browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn