了解NSHTTPCookieStorage for iPhone [英] Understanding NSHTTPCookieStorage for the iPhone

查看:195
本文介绍了了解NSHTTPCookieStorage for iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许我遗漏了一些东西,但从 NSHTTPCookieStorage 的Apple文档,我不禁想知道如何安全使用。

Maybe I'm missing something, but from Apple's documentation for NSHTTPCookieStorage, I can't help but wonder how this is safe to use.

这是否意味着cookie存储在iPhone上的所有应用程序之间共享?如果我的应用程式进行Http通话,导致储存一些Cookie,所有应用程式现在都可以存取这些Cookie吗?

Does this mean that cookie storage is shared across all apps on the iPhone? If my app makes an Http call that results in some cookies being saved, do all apps now have access to these cookies?

方法如:


cookiesForURL:返回所有
接收者的cookies,将
发送到指定的URL。

cookiesForURL: Returns all the receiver's cookies that will be sent to a specified URL.

使它看起来更可疑。

有人可以解释这是怎么回事,以及课程是什么?

Can someone explain how this is OK, and what the class does?

缺陷,这确实是沙箱的每个应用程序,使用 NSURLRequest 做的调用自动保存/从此存储中检索Cookie,或者是开发人员负责在分派请求之前设置请求头

Also, assuming my understanding is flawed and this is indeed sandboxed per-app, do calls made using NSURLRequest automatically save/retrieve cookies from this store or is it the developers responsibility to set request headers before dispatching the request?

推荐答案

您的应用程式只能存取自己沙箱中的Cookie。

Your application only has access to cookies within its own sandbox.

这篇关于了解NSHTTPCookieStorage for iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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