如何保持会议的Andr​​oid? [英] How to keep session in android?

查看:99
本文介绍了如何保持会议的Andr​​oid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序的Andr​​oid必须连接到Web服务(的.asmx)使用kso​​ap2。但它有会话。当我登录服务将保持会话管理用户 - 客户端。但是,当我登录成功,web服务会话保持空?一些身体能告诉我为什么吗?

My app android have connect to webservice (.asmx) use ksoap2. But it has session. When i login service will keep session to manage user - client. But when i login success, session in webservice is keeping null? Can some body tell me why?

推荐答案

Android是无法界定的会议,因为它是网络浏览器的功能。我们想出了最简单的解决方案是通过URL,例如为一起发送Web会话中的SessionID: <$c$c>http://your.required.url/your.context/your.action;jsessionid=<the_current_session_id>?GET=PARAMETERS

Android is not able to define sessions, as it is a feature of web browsers. The simplest solution we had come up with was to send the sessionID of the web session along with the URL, for e.g.: http://your.required.url/your.context/your.action;jsessionid=<the_current_session_id>?GET=PARAMETERS

这篇关于如何保持会议的Andr​​oid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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