(Web)每次您访问不同的网页时,网络浏览器都会为您的 iPhone 提供 cookie。Cookies 通过在您的设备上保存浏览偏好和个人信息来简化您的在线体验,因此您不必重复某些任务。它是网站获取您信息(websites obtain your information)的技术之一。
网站会在您的设备上保存不同类型的 cookie。跳至(Jump)以下部分,了解不同类型的 cookie 以及如何在 iPhone 上启用 cookie。这篇文章重点介绍了在Safari(Safari)、Google Chrome、Microsoft Edge和Mozilla Firefox中管理 cookie 的步骤。

第一方与第三方 Cookie
许多网络浏览器上的cookie 管理选项(cookie management options)取决于您处理的 cookie 类型。Cookie 根据其来源和用途分为两大类。
第一方 Cookie:(First-Party Cookies:)这些是您在浏览器上访问的网站直接创建的 Cookie。假设(Say)您访问SwitchingToMac.com,网站会在您的浏览器中保存标记为“switchingtomac.com”的 cookie。这些是“第一方 cookie”,因为主机域创建了 cookie。
许多网站通常会显示一个对话框,提示您授予他们在您的设备上创建 cookie 的访问权限。第一方 cookie 负责浏览器上的偏好和自定义,例如语言、密码、用户名、帐单地址等。
如果您重新访问一个网站并且您不必重新输入您的登录凭据或重做您在第一次访问时所做的一些自定义,那是因为该网站在您的设备上保存了它的(第一方)cookie。

第三方 Cookie:(Third-Party Cookies:)这些是由不属于您访问的网站的网络服务器生成的 Cookie。第三方 cookie 通常是由与您浏览器URL中的网站不同的另一个网站嵌入网页上的广告创建的。
广告商经常使用第三方 Cookie(也称为跟踪 Cookie(Tracking Cookies))来跟踪您在多个网站上的在线活动。因此,请务必将您的浏览器配置为自动阻止第三方 cookie。
在 iPhone 上的 Safari 中启用 Cookie
某些网站要求您在浏览器上启用 cookie 以享受最佳用户体验。如果您的浏览器未将 cookie 保存到 iPhone,您可能会在访问某些网站上的内容时遇到困难。要在Safari(Safari)中启用 cookie ,请关闭浏览器并按照以下步骤操作:
- 打开设置(Settings)应用程序并在应用程序列表中选择Safari。

- 滚动到“隐私和安全”并关闭Block All Cookies。

关闭此选项后,您已成功配置Safari以允许网站在您的 iPhone 上保存 cookie。
在 iPhone 上为Google Chrome(Google Chrome)启用 Cookie
与Android不同,Chrome 在 iOS 中的 cookie 管理非常严格。就上下文而言,Android版本的Google Chrome拥有多个 cookie 管理选项,可让您在常规和隐身模式下阻止或允许 cookie。
在 iPhone 和 iPad 上,Chrome会自动允许网站创建和存储 cookie。该功能默认(feature is enabled by default)启用并永久保持启用状态。
在 Microsoft Edge 中启用 Cookie
默认情况下,Microsoft Edge会阻止第三方网站将 cookie 保存到你的设备。如果您想在iPhone 上为Microsoft Edge中的所有网站启用 cookie,请按以下步骤操作:(Microsoft Edge)
- 打开 Microsoft Edge 并点击工具栏上的三点菜单图标(three-dot menu icon)。

- 选择设置(Settings)。

- 选择隐私和安全(Privacy and security)。

- 滚动到“安全”部分,然后点击Cookie(Cookies)。

- 如果您希望Edge仅保存您访问的网站生成的第一方 cookie ,请选择仅阻止第三方 cookie 。(Block only third-party cookies)否则(Otherwise),请选择不阻止 cookie(Don’t block cookies)以指示Edge在您的 iPhone 上保存第一方和第三方 cookie。

- 关闭(Close)并重新打开Microsoft Edge以使更改生效。
在 Mozilla Firefox 中启用 Cookie
默认情况下, Firefox(Firefox)还会自动保存网站的 cookie。但是,出于说明目的,以下是在 iPhone 和 iPad 上的Firefox中检查和启用 cookie 的方法。(Firefox)
- 启动 Firefox,点击右下角的汉堡菜单图标,然后选择(hamburger menu icon)设置(Settings)。

- 在“隐私”部分,选择数据管理(Data Management)。

- 确保Cookie(Cookies)已打开。如果禁用,请打开该选项并重新启动Firefox。

如何清除 iPhone 上的 Cookie
生活中的每一件事都有优点和缺点。尽管 cookie 技术有很多好处,但过时的 cookie 可能会影响您浏览器的性能(obsolete cookies can affect your browser’s performance)。黑客还可以利用 cookie 访问您的信息和在线活动。
如果您的浏览器在您的 iPhone 上保存了第三方 cookie,或者您在访问网页和下载文件时遇到问题,请考虑清除所有保存的 cookie。请注意,清除浏览器的 cookie 将使您退出大多数网站。同样(Likewise),当您重新访问某些网站时,您可能需要重新自定义您的偏好和其他设置。
在 Safari 中清除 Cookie(Clear Cookies in Safari)
前往设置(Settings)> Safari,然后点击清除历史记录和网站数据(Clear History and Website Data)。点击提示上的清除历史记录和数据(Clear History and Data)以确认操作。

请注意,这会删除Safari保存的 cookie并删除浏览历史记录和其他站点数据。
在 Chrome 中清除 Cookie(Clear Cookies in Chrome)
尽管 Chrome 的 cookie 管理在 iOS 设备上并不灵活,但用户可以随时删除 cookie。
- 点击右下角的更多图标,然后选择(More icon)设置(Settings)。

- 选择隐私(Privacy)。

- 选择清除浏览数据(Clear Browsing Data)。

- 检查Cookies、站点数据(Cookies, Site Data)并点击页面底部的清除浏览数据。(Clear Browsing Data)再次点击清除浏览数据(Clear Browsing Data)以继续。

清除 Microsoft Edge 中的 Cookie(Clear Cookies in Microsoft Edge)
- 打开浏览器的设置(Settings)菜单并选择隐私和安全(Privacy and security)。

- 选择清除浏览数据(Clear browsing data)。

- 检查Cookie 和站点数据(Cookies and site data),然后点击清除浏览数据(Clear browsing data)。在确认提示中点击清除(Clear)以继续。

清除 Firefox 中的 Cookie(Clear Cookies in Firefox)
打开Firefox设置菜单,选择Data Management,打开Cookies only,点击Clear Private Data,然后在提示符上点击OK 。

这就是关于在 iPhone 上启用和清除 cookie 的所有信息。本指南中的步骤和技术适用于 iPadOS 设备。
想要查看或清除本地存储在您计算机上的所有网站 cookie?请参阅本指南以管理浏览器 cookie 以获得更好的隐私(managing browser cookies for better privacy)。
How to Enable Cookies on iPhone
Web browsers feed your iPhone with cookies every time you visit different web pagеs. Cookies streamline your online experience by savіng browsing preferences and personаl information on your device, so уou don’t havе to repeat certain tasks. It’s оne of the technologies through which websites obtain your information.
Websites save different types of cookies on your device. Jump to the sections below to learn the different types of cookies and how to enable cookies on your iPhone. This post highlights the steps for managing cookies in Safari, Google Chrome, Microsoft Edge, and Mozilla Firefox.

First-Party vs. Third-Party Cookies
The cookie management options on many web browsers will depend on the type of cookie you’re dealing with. Cookies are grouped into two major categories based on their source and purpose.
First-Party Cookies: These are cookies created directly by websites you visit on a browser. Say you visit SwitchingToMac.com, and the website saves cookies labeled “switchingtomac.com” in your browser. Those are “First-party cookies” because the host domain created the cookie.
Many websites often display a dialog box prompting you to grant them access to create cookies on your device. First-party cookies are responsible for preferences and customizations like language, passwords, usernames, billing address, etc., on your browser.
If you revisit a website and you didn’t have to re-enter your login credentials or redo some customizations you made on your first visit, that’s because the site saved its (first-party) cookie on your device.

Third-Party Cookies: These are cookies generated by web servers that don’t belong to the website you visit. Third-party cookies are often created by ads embedded on a webpage by another website different from the one in your browser’s URL.
Advertisers often use third-party cookies (also known as Tracking Cookies) to track your online activity across multiple websites. Therefore, do configure your browser to block third-party cookies automatically.
Enable Cookies in Safari on iPhone
Some sites require you to enable cookies on your browser to enjoy the best user experience. You might encounter difficulties accessing content on certain websites if your browser isn’t saving cookies to your iPhone. To enable cookies in Safari, close the browser and follow these steps:
- Open the Settings app and select Safari on the list of applications.

- Scroll to the “Privacy & Security” and toggle off Block All Cookies.

With this option turned off, you’ve successfully configured Safari to allow websites to save cookies on your iPhone.
Enable Cookies on iPhone for Google Chrome
Unlike Android, Chrome’s cookie management in iOS is quite restrictive. For context, the Android version of Google Chrome boasts of several cookie management options that let you block or allow cookies in regular and incognito mode.
On iPhone and iPad, Chrome automatically allows websites to create and store cookies. The feature is enabled by default and stays enabled forever.
Enable Cookies in Microsoft Edge
By default, Microsoft Edge blocks third-party websites from saving cookies to your device. If you want to enable cookies for all websites in Microsoft Edge on your iPhone, here’s how to go about it:
- Open Microsoft Edge and tap the three-dot menu icon on the toolbar.

- Select Settings.

- Select Privacy and security.

- Scroll to the “Security” section and tap Cookies.

- Select Block only third-party cookies if you want Edge to save only first-party cookies generated by the website(s) you visit. Otherwise, select Don’t block cookies to instruct Edge to save both first-party and third-party cookies on your iPhone.

- Close and reopen Microsoft Edge for the change to take effect.
Enable Cookies in Mozilla Firefox
Firefox also saves websites’ cookies automatically by default. However, for instructional purposes, here’s how to check and enable cookies in Firefox on iPhone and iPad.
- Launch Firefox, tap the hamburger menu icon at the bottom-right corner, and select Settings.

- In the “Privacy” section, select Data Management.

- Make sure Cookies is toggled on. If disabled, toggle on the option and restart Firefox.

How to Clear Cookies On iPhone
Everything in life has advantages and disadvantages. Despite the benefits attached to the cookie technology, obsolete cookies can affect your browser’s performance. Hackers can also exploit cookies to gain access to your information and online activity.
If your browser saved third-party cookies on your iPhone, or you’re experiencing issues visiting webpages and downloading files, consider clearing all saved cookies. Note that clearing your browser’s cookies will sign you out of most websites. Likewise, you might have to re-customize your preferences and other settings when you revisit some websites.
Clear Cookies in Safari
Head to Settings > Safari and tap Clear History and Website Data. Tap Clear History and Data on the prompt to confirm the operation.

Note that this deletes cookies saved by Safari and removes browsing history and other site data.
Clear Cookies in Chrome
Although Chrome’s cookie management isn’t flexible on iOS devices, users have the liberty to delete cookies at any time.
- Tap the More icon at the bottom-right corner and select Settings.

- Select Privacy.

- Select Clear Browsing Data.

- Check Cookies, Site Data and tap Clear Browsing Data at the bottom of the page. Tap Clear Browsing Data again to proceed.

Clear Cookies in Microsoft Edge
- Open the browser’s Settings menu and select Privacy and security.

- Select Clear browsing data.

- Check Cookies and site data and tap Clear browsing data. Tap Clear on the confirmation prompt to proceed.

Clear Cookies in Firefox
Open the Firefox settings menu, select Data Management, toggle on Cookies only, tap Clear Private Data, and tap OK on the prompt.

That’s pretty much all there is to know about enabling and clearing cookies on an iPhone. The steps and techniques in this guide apply to iPadOS devices.
Want to view or clear all website cookies stored locally on your computer? Refer to this guide on managing browser cookies for better privacy.