保持 Flash Mobile StageWebView 和 HttpService cookie 同步 - Android
在 Flash Builder 移动应用程序中,我使用 StageWebView 和 HttpService 与 ASP.NET Web 应用程序进行通信。最初,用户登录到 StageWebView 中的 Web 应用程序,然后我使用 Flash HttpService 进行类似 REST 的通信,与 ASP.NET Web 应用程序进行通信。问题是使用 HttpService 的 REST 调用未被识别为经过身份验证的用户。由于用户未经身份验证,它们被重定向到登录页面。这是 Android 上的问题,但在 Ipad 上有效。
ASP.NET 使用表单身份验证,因此我相信身份验证值保存在 cookie 中。 Cookie 不在 Android StageWebView 和 HttpService 中共享,它们是不同的 Web 会话。有没有办法从 StageWebView 获取 cookie 并将它们放入 HttpService 中,以便它的调用也显示为同一经过身份验证的用户。
如果没有,是否有其他替代解决方案来解决这个问题?
In a Flash Builder mobile app, I use a StageWebView and a HttpService to communicate with an ASP.NET web application. Initially, the user logs into the web app in the StageWebView, then later I do REST like communication to the ASP.NET web app using Flash HttpService. The problem is that the REST calls using HttpService are not recognized as an authenticated user. They are redirected to the logon page since the user is not authenticated. This is an issue on the Android, it works on the Ipad.
The ASP.NET is using Forms authentication, so I believe that the authentication values are kept in a cookie. The cookies aren't shared in in the Android StageWebView and HttpService, they are different web sessions. Is there a way to grab the cookies from the StageWebView and place them in the HttpService so that it's calls will also appear to be the same authenticated user.
If not, are there some other alternative solutions to this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论