Android的web视图 - 复位HTTP会话 [英] Android WebView - reset HTTP session

查看:128
本文介绍了Android的web视图 - 复位HTTP会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Andr​​oid应用程序网页视图。我定期要能够重置的WebView http会话,这样服务器应用程序被访问将初始化一个新的会话。我找不到如何做到这一点? - 这是可能的。

I'm using a WebView in an Android app. I periodically to be able to reset the WebView http session so that the server app it is accessing will initialise a new session. I can't find how to do this - is this possible ?

RGDS,凯文。

推荐答案

我想明确的cookie可以使会话关闭。更多关于<一个href=\"http://www.dotnetspider.com/resources/1499-Session-A-Concept-for-Beginners.aspx\">session

I think the clear cookie can make session close. More about session

    CookieSyncManager cookieSyncMngr = CookieSyncManager.createInstance(context);
    CookieManager cookieManager = CookieManager.getInstance();
    cookieManager.removeAllCookie();

这篇关于Android的web视图 - 复位HTTP会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆