如何保持会议的Android? [英] How to keep session in android?
问题描述
我的应用程序的Android必须连接到Web服务(的.asmx)使用ksoap2。但它有会话。当我登录服务将保持会话管理用户 - 客户端。但是,当我登录成功,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$c$c>
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
这篇关于如何保持会议的Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!