Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weiboLogin是否清除了cookie? #50

Open
saigyouyou opened this issue Nov 14, 2017 · 4 comments
Open

weiboLogin是否清除了cookie? #50

saigyouyou opened this issue Nov 14, 2017 · 4 comments

Comments

@saigyouyou
Copy link

使用weiboLogin获取了accessToken后,使用accessToken和uid请求自己的服务端以登录,登陆完返回用户数据页面后刷新发现登录状态丢失,检查后发现cookie变成了了空。尝试不使用weiboLogin,直接使用accessToken和uid来请求服务端,结果正常。是否是weibo的sdk在登录后会清空cookie?

@wd
Copy link

wd commented Nov 21, 2017

我感觉是的。。。我这有类似问题,这货貌似会把所有我自己的 cookie 干掉。。
image

@wd
Copy link

wd commented Nov 21, 2017

sinaweibosdk/weibo_android_sdk#201 就是这里的问题。

@wd
Copy link

wd commented Nov 21, 2017

没办法了,我只能是得到微博授权之后多请求一下我的接口,再拿一次登录的 cookie。暂时先这么解决。
有更好方法的,欢迎支招。。。。

@saigyouyou
Copy link
Author

@wd 这是一个去掉了清除cookie方法的版本,需要的自取。http://pan.baidu.com/s/1jHAzhsU 提取码 1diy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants