【发布时间】:2014-03-04 08:33:01
【问题描述】:
我已经成功登录用户(请求他们的批准,然后让他们做一些其他受保护的事情),现在我想清除他们的登录,或者换句话说,当他们点击一个按钮时注销他们。
是否有可以加载 webview 的路径?我知道其他网站有类似 https://somewebsite.com/logout 的东西,可以让人们退出。
请帮助我。提前致谢!
【问题讨论】:
标签: android oauth-2.0 google-plus scribe
我已经成功登录用户(请求他们的批准,然后让他们做一些其他受保护的事情),现在我想清除他们的登录,或者换句话说,当他们点击一个按钮时注销他们。
是否有可以加载 webview 的路径?我知道其他网站有类似 https://somewebsite.com/logout 的东西,可以让人们退出。
请帮助我。提前致谢!
【问题讨论】:
标签: android oauth-2.0 google-plus scribe
我想出了一个清除一切的方法。 我希望其他人觉得它有用!
public void clearCookies(){
CookieSyncManager.createInstance(GooglePlusActivity.this);
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.removeAllCookie();
}
【讨论】:
关注these Android signout instructions on the Google+ developer site退出用户,让他们切换帐户或退出。
【讨论】: