如何从我的ios应用程序共享cookie到移动游猎? [英] How to share cookies from my ios app to mobile safari?

查看:197
本文介绍了如何从我的ios应用程序共享cookie到移动游猎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用asiHttpRequest库进行数据获取和发布。

I use asiHttpRequest library to do data get and post.

我已经建立了一个登录函数来登录我的网站,之后,如果我启动了一个我的应用程序使用移动safari应用程序浏览网站的URL仍然没有经过身份验证。

I have built a login function with it to login to my site, after that, if I launcher a URL from my app to use mobile safari app browse the site, it still remains not authenticated.

我想原因是我的应用程序不共享相同的cookie存储空间野生动物园,这是正确的吗?我可以与其他应用程序共享cookie,尤其是Safari吗?

I guess the reason is that my app does not share the same cookie storage with safari, is that correct? is that possible I share the cookies with other apps, especially the Safari?

推荐答案

您不能在手机中共享Cookie苹果浏览器。正如@erpayo所说,它位于Sandbox中。

You can NOT share cookies in your App with Mobile Safari. As @erpayo said, it's in Sandbox.

也许在您的App中添加 UIWebView 是最佳解决方案。不要在Mobile Safari中打开URL,而是在 UIWebView 中打开它。它可以得到你的饼干。

Maybe add a UIWebView into your App is the best solution. Do not open an URL in Mobile Safari but open it in the UIWebView. It can get your cookies.

这篇关于如何从我的ios应用程序共享cookie到移动游猎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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