Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序 android 已使用 ksoap2 连接到 web 服务 (.asmx)。但它有会话。当我登录服务将保持会话来管理用户 - 客户端。但是当我登录成功时,网络服务中的会话保持为空?有人能告诉我为什么吗?
Android 无法定义会话,因为它是 Web 浏览器的一项功能。我们想出的最简单的解决方案是将 Web 会话的 sessionID 与 URL 一起发送,例如:http://your.required.url/your.context/your.action;jsessionid=<the_current_session_id>?GET=PARAMETERS
http://your.required.url/your.context/your.action;jsessionid=<the_current_session_id>?GET=PARAMETERS