Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
4
votes
1
answers
2229
views
Safari on iOS doesn’t save cookies
iPhone, latest iOS, Safari. I do very little web browsing from my phone; in most cases, I just open Safari and search for something. I always had this rather frustrating issue: every time I search for something, Google (which is my default search engine) asks me to accept cookies before displaying s...
iPhone, latest iOS, Safari.
I do very little web browsing from my phone; in most cases, I just open Safari and search for something. I always had this rather frustrating issue: every time I search for something, Google (which is my default search engine) asks me to accept cookies before displaying search results.
Digging more deeply, I discovered that the problem seems to be related to cookies: Safari just doesn’t seem to save *any* cookie at all; if f.e. I log in to a web site, the next time I go there I will be asked to log in again; anything I do on a web site (including clicking "Accept" on Google's disclaimer) is lost the next time I open it.
The option to block all cookies is *not* enabled.
I'm *not* using private mode.
I'm *not* clearing browser data between sessions.
Why is this happening, and how can I avoid it?
Example:
-
I definitely logged in to this very site from my phone to ask this question.
And yet, *from the same phone*, 20 minutes later, I had to log in again.
Massimo
(478 rep)
Jun 25, 2021, 07:17 PM
• Last activity: Aug 6, 2025, 04:09 AM
3
votes
2
answers
1632
views
Better way to access Safari website data on iOS?
It is really irritating to have to *one at a time* delete hundreds of cookies/caches from websites I have never visited. (Would that Apple would allow us to block third-party cookies). Is there an API that would allow me to build my own app in Xcode to handle it in a better way? Or something like Co...
It is really irritating to have to *one at a time* delete hundreds of cookies/caches from websites I have never visited. (Would that Apple would allow us to block third-party cookies).
Is there an API that would allow me to build my own app in Xcode to handle it in a better way? Or something like Cookie 6 (macOS) for iOS? Or someone else’s open source that I can compile?
I’m not willing to jailbreak, nor to install something with source code not vetted by me or Apple.
For example, clearing all website data and then logging in to Facebook.com adds five third-party cookies. Three of them are from domains owned by Facebook, but do not end in Facebook.com. The other two are obviously from advertising services.
This is why I use DuckDuckGo for almost everything, and Safari only occasionally. DuckDuckGo lets me clear everything after a session. I use Safari for a few domains where I’d like to keep _their_ cookies only, but the cost of that is consumption of storage space that doesn’t benefit me and prevents syncing all the music I’d like.
The cookies are less irritating than the consumption of limited storage space. But if third-party cookies are accepted, cross-site tracking is implied. Since I cleared **all** website data (recently), I have not visited any site with “math” in the name. Only Facebook, UniGen.us, and three SE subdomains. Yet I have a cookie from mathoverflow.com And Safari says it’s size is zero bytes. Obviously, it is at least one byte. But more of an issue are the megabytes of third-party local storage resulting in updates and Music syncs failing for insufficient space.

WGroleau
(5370 rep)
Jul 12, 2021, 04:33 PM
• Last activity: May 24, 2025, 01:07 AM
2
votes
2
answers
12546
views
Safari 14: how to view cookies' content
In Safari 14 for Mac, how can I view the contents of the cookies set by a given site? I know how to delete them, but I would like to see exactly what's in them. I have tried loading the site with Safari's Developer Tools, but the "Cookies" section in the inspector didn't have anything.
In Safari 14 for Mac, how can I view the contents of the cookies set by a given site? I know how to delete them, but I would like to see exactly what's in them.
I have tried loading the site with Safari's Developer Tools, but the "Cookies" section in the inspector didn't have anything.
PaulJ
(787 rep)
Jan 15, 2021, 04:34 PM
• Last activity: Aug 14, 2024, 07:08 PM
1
votes
0
answers
46
views
Mac and old Adobe Flash Player: HSTS behaviour
I begin by saying that I have recently 'obsessed' with my past browsing history with my old Mac (2017). I also understand that flash is not updated and many won’t have a system on which to test this today. Example: website URL is visited on January 1st, the `settings.sol` file Macromedia-support-fla...
I begin by saying that I have recently 'obsessed' with my past browsing history with my old Mac (2017). I also understand that flash is not updated and many won’t have a system on which to test this today.
Example: website URL is visited on January 1st, the
settings.sol
file Macromedia-support-flash player-sys-url should be updated for that URL and an entry created showing HSTS starting date January 1st and HSTS max age 180 days (in seconds). I’m interested in what happens to the file after June 30th when the HSTS policy expires and no other visits to that page happen between the entry and expiration passes.
I have a settings.sol
file having, let's say, those HSTS info (January 1st and 180 days) which appears to have been created and modified on June 6th even though the browsing history says that that website was visited only on January 1st and not on June 6th.
Is it possible that Flash Player used to automatically update the settings.sol
files having an expired HSTS policy to clean them?
Allthesehalfefloors
(11 rep)
Jun 18, 2024, 11:15 PM
• Last activity: Jul 2, 2024, 09:25 AM
1
votes
0
answers
41
views
Does Firefox on iOS benefit from third-party partitioning or Full Third-party Cookie Blocking?
Safari blocks third-party cookies by default ([added in iOS / iPadOS 13.4](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/)). "Third-party cookie access can only be granted through the Storage Access API and the temporary compatibility fix for popups." - [webkit.org](https:/...
Safari blocks third-party cookies by default ([added in iOS / iPadOS 13.4](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/)) .
"Third-party cookie access can only be granted through the Storage Access API and the temporary compatibility fix for popups." - [webkit.org](https://webkit.org/tracking-prevention/)
Firefox on iOS does not use Firefox's own code for [Total Cookie Protection](https://blog.mozilla.org/en/products/firefox/firefox-rolls-out-total-cookie-protection-by-default-to-all-users-worldwide/) . Firefox on iOS is currently based on Webkit, like Safari is.
Does Firefox on iOS block third-party cookies by default?
sourcejedi
(171 rep)
May 11, 2024, 09:11 AM
1
votes
1
answers
68
views
What is the difference between "Remove" and "Remove All" in Safari Preferences › Privacy › Manage Website Data?
The title pretty much says it all. I cannot find any explanation of the difference between the two buttons.
The title pretty much says it all.
I cannot find any explanation of the difference between the two buttons.
Andrew Swift
(2320 rep)
May 17, 2022, 12:08 PM
• Last activity: Feb 2, 2024, 04:14 AM
16
votes
5
answers
8970
views
Safari randomly and periodically loses cookies
It's been a while now that I'm facing this issue. From time to time, and on some websites, I have to either: - Accept **again** the cookies, and/or - Login **again**. I'm using macOS 10.14.4 and Safari 12.1. It's quite annoying. Any suggestion?
It's been a while now that I'm facing this issue. From time to time, and on some websites, I have to either:
- Accept **again** the cookies, and/or
- Login **again**.
I'm using macOS 10.14.4 and Safari 12.1. It's quite annoying. Any suggestion?
wrong_path
(283 rep)
Mar 31, 2019, 07:50 AM
• Last activity: Dec 12, 2023, 09:45 AM
0
votes
0
answers
120
views
What happened to nsurlstoraged, the successor to cookied?
According to the answer on [How to delete Safari cookies from OS 10.7.2 terminal?](https://superuser.com/a/1203145/11116) and many others there used to be a daemon called `cookied` later replaced with `nsurlstoraged`. I don't see `nsurlstoraged` on my Mac install in the process table or on disk. Did...
According to the answer on [How to delete Safari cookies from OS 10.7.2 terminal?](https://superuser.com/a/1203145/11116) and many others there used to be a daemon called
cookied
later replaced with nsurlstoraged
.
I don't see nsurlstoraged
on my Mac install in the process table or on disk. Did this go away? If so, what replaced this functionality? What is responsible for writing ~/Library/Cookies/Cookies.binarycookies
on OSX 13.5+?
----
What I'm trying to do: I can delete Cookies.binarycookies
. I can go to a site like setcookie.net
I can fill out that page, I can hit refresh. The Cookies.binarycookies
does not get regenerated. I want to know _why_. I can figure out that, but I need a pointer: what writes to that file today. Previously someone asked this very question and they were told they needed to kill pkill -U $(whoami) cookiesd
. Then it turned out that daemon was renamed to nsurlstoraged
, and that needed to be killed. Now I don't have that. Be careful though, my end goal is to understand the system I am using.
Evan Carroll
(679 rep)
Nov 6, 2023, 02:58 PM
• Last activity: Nov 6, 2023, 07:11 PM
4
votes
2
answers
1652
views
Safari keeps losing cookies
For like two weeks now I'm facing a strange issue with Safari (Version 15.5 (17613.2.7.1.8)) on macOS (Monterey), which keeps "forgetting" all cookies, including log-in ones. That is extremely annoying because it happens really often - maybe every hour? And with most sites nowadays you have to enter...
For like two weeks now I'm facing a strange issue with Safari (Version 15.5 (17613.2.7.1.8)) on macOS (Monterey), which keeps "forgetting" all cookies, including log-in ones.
That is extremely annoying because it happens really often - maybe every hour? And with most sites nowadays you have to enter 2FA as well so if you're logged in to multiple sites you're working with for the whole day, I bet I'd have to spend at least an hour every day re-logging to every single one. I've been using Safari almost exclusively for years now and have all credentials stored in Keychain so switching to a different browser is an almost impossible task (I know I can have a look into Keychain for passwords but I'd prefer not to look into it multiple times a day).
I'm not aware of any changes to my system, other than uninstalling Java JDK 16.0.2 (I think that was the version...). The reason for uninstalling that was another weird issue - for some reason, whenever I clicked a button on any page, it "clicked" the back button and I got redirected back - this no longer happens after uninstalling Java. I definitely didn't install any browser extensions.
Any thoughts what might be causing that and how to fix it?
jnko
(41 rep)
Jun 7, 2022, 08:54 AM
• Last activity: Sep 27, 2023, 02:49 PM
0
votes
0
answers
31
views
Delete cookies from local LAN website
How do I delete specific website data from a `.local` LAN website? I can't find it in the view for specific website storage: [![Screenshot of Safari's Privacy tab showing 'No Saved Website Data' of a local website][1]][1] [1]: https://i.sstatic.net/mkvbE.png "Screenshot of Safari's Privacy tab showi...
How do I delete specific website data from a
.local
LAN website? I can't find it in the view for specific website storage:
![Screenshot of Safari's Privacy tab showing 'No Saved Website Data' of a local website ][1]
Using **Remove All** works, but is for developing not a good solution. Is there anything I oversee or a workaround?
user381014
Jun 11, 2023, 02:14 PM
• Last activity: Jun 11, 2023, 02:28 PM
59
votes
6
answers
149956
views
How to use youtube-dl --cookies
How do I use the `--cookies` option to `youtube-dl` to download a Youtube video? Can anyone provide a worked example of how to obtain the relevant cookies for Youtube and put it in the appropriate format for `youtube-dl`? Context: I want to download a private Youtube video. For various reasons, the...
How do I use the
--cookies
option to youtube-dl
to download a Youtube video? Can anyone provide a worked example of how to obtain the relevant cookies for Youtube and put it in the appropriate format for youtube-dl
?
Context: I want to download a private Youtube video. For various reasons, the method of logging into my Google account is complicated and involves two-factor authentication and not supported by youtube-dl
's existing command-line options. Therefore, it seems the best way is to log in manually in my browser, obtain the authentication cookies somehow, and use the --cookies
option -- but I can't find a worked example of how to do this.
D.W.
(4097 rep)
Jan 26, 2019, 12:15 AM
• Last activity: Apr 3, 2023, 02:42 PM
26
votes
2
answers
69775
views
How can I edit my cookies in Safari Web Inspector?
I could not edit value of cookies. How can I edit my cookies in Safari Web Inspector?
I could not edit value of cookies.
How can I edit my cookies in Safari Web Inspector?
Anil Kocabiyik
(361 rep)
Jan 23, 2015, 04:06 PM
• Last activity: Mar 28, 2023, 07:57 AM
3
votes
1
answers
138
views
Forced re-login to any Stack Exchange site on Safari after running Apple News
I'm on an old Mac Pro with Safari. Both are now out of date [macOS 10.14 & Safari 14], but this has been happening for years, since both were still current - I've just patiently put up with it. I am not a frequent rebooter, so uptime can often be a month or more. The Mac never sleeps. If I do reboot...
I'm on an old Mac Pro with Safari. Both are now out of date [macOS 10.14 & Safari 14], but this has been happening for years, since both were still current - I've just patiently put up with it.
I am not a frequent rebooter, so uptime can often be a month or more. The Mac never sleeps. If I do reboot, Safari auto-reopens in the same state as at quit. Logins & cookies are preserved. I just need to refresh to see each page's current state.
I keep about 7 SE tabs open permanently - plus many others on questions I'm actively but temporarily involved with. I refresh periodically to see new questions etc.
I can do this as many times as I like with no adverse effect… unless I've just quit Apple News. Then I get asked to log in again.
It doesn't happen if I refresh whilst News is still open, only after I quit it. It also doesn't seem to happen a second time if I launch News again soon after the last forced login. There seems to be a retention period before the time-out. I've been unable to hone this down to an actual time, it may be hours rather than minutes.
As I tend to browse News morning and evening, I generally get logged out twice a day.
Additional tests
If I quit News then refresh immediately, I get the forced login.
If I quit News and wait several minutes, it isn't triggered.
Browser plugins have been eliminated as a potential issue.
Cookies are established & hold at all other times.
News seems to add a lot of com.Apple.WebKit processes. Safari also uses WebKit. This is about the only connection I can see, I'm not a coder or web dev, so my knowledge is extremely limited in this area.
This issue does not happen with non-WebKit browsers & I cannot reproduce it on any other Mac. Tested back to El Capitan on one Mac & up to Monterey on another. I don't have a sock-puppet or other means of testing another account on this same Mac.
I first asked this on Meta, wondering if it was some site-specific context server-side. This received little love, so having now found a solution, I'm moving it here just in case this ever affects anyone else.
Tetsujin
(119118 rep)
Feb 7, 2023, 09:45 AM
• Last activity: Feb 7, 2023, 09:53 AM
-1
votes
1
answers
137
views
Where is information for Safari Private stored?
I noticed an interesting case where a website had blocked me from accessing contents on Safari (Private Mode), switching over to Safari Technology Preview (Private Mode) resolved these issues. Either through a user-agent ban or stored cookies (which should be impossible since I'm on Private Mode), s...
I noticed an interesting case where a website had blocked me from accessing contents on Safari (Private Mode), switching over to Safari Technology Preview (Private Mode) resolved these issues. Either through a user-agent ban or stored cookies (which should be impossible since I'm on Private Mode), somehow regular Safari is not able to work.
Does anyone know why a unique situation like this could occur? I'm wondering if it's because of cookies/identifiers stored somewhere inside my MacOS files causing the website to allow me to use it at all. I understand that using Safari Private does not allow cookies to "exist" after it shuts down. Even after rebooting my Macbook, clearing all Safari data, and emptying my caches, the website is still blocking me. However, using Safari Technology Preview fixes everything. Does Safari PT interact differently with websites? Is Safari Private actually keeping identifiable information even after closing out of it? Surely **some** information from Safari Private is stored somewhere, either deep in the files/folders of /Library or in RAM, which is why Safari TP works and Safari Regular does not.
Weird situation, hoping someone can help me out.
brianleeeh
(67 rep)
Sep 23, 2022, 10:27 AM
• Last activity: Sep 23, 2022, 12:43 PM
0
votes
0
answers
123
views
Accept All Cookies popup on this page/site (AskDifferent) not disappearing after accepting
I have tested in other browsers, Firefox, Chrome, Brave, and clicking on the accept button make the popup disappear as it should. My problem is that it is not working in in Safari 11.1.2 on 10.13.6
I have tested in other browsers, Firefox, Chrome, Brave, and clicking on the accept button make the popup disappear as it should.
My problem is that it is not working in in Safari 11.1.2 on 10.13.6
jondear
(1 rep)
Aug 23, 2022, 01:16 PM
29
votes
5
answers
56662
views
How to auto-accept cookies notifications as mandated by EU law?
EU law forces websites to notify visitors about the use of cookies. Clicking on these messages is quite a nuisance. I've found a plugin on http://web.archive.org/web/20191214230044/http://cookiesok.com but this is only available for Chrome, Firefox and Opera. Does anybody know of something similar f...
EU law forces websites to notify visitors about the use of cookies. Clicking on these messages is quite a nuisance. I've found a plugin on http://web.archive.org/web/20191214230044/http://cookiesok.com but this is only available for Chrome, Firefox and Opera.
Does anybody know of something similar for Safari? Or other means to accomplish the same?
StrawHara
(5053 rep)
Dec 30, 2015, 04:26 PM
• Last activity: Aug 11, 2022, 05:26 PM
14
votes
6
answers
58491
views
How can you see the value of a cookie on an iPhone?
I need to see the *value* of a cookie in Safari on an iPhone. How do I do this? Note that I'm not asking how to delete a cookie, or how to see that a cookie exists. I'm trying to see the actual data stored in a cookie. For example, on Firefox, I can go to `Tools > Options > Privacy > Show Cookies` a...
I need to see the *value* of a cookie in Safari on an iPhone. How do I do this?
Note that I'm not asking how to delete a cookie, or how to see that a cookie exists. I'm trying to see the actual data stored in a cookie.
For example, on Firefox, I can go to
Tools > Options > Privacy > Show Cookies
and see the actual data stored in each cookie my browser has stored.
Joe
(435 rep)
Dec 17, 2012, 10:01 PM
• Last activity: Mar 26, 2022, 03:52 PM
4
votes
2
answers
8194
views
Why do Chromium and Chrome delete all cookies after closing the browser?
I am unable to stay signed in on Chromium and Google Chrome. I sign in to website A, close all tabs, open website A again, and am still signed in. I quit Chromium or Google Chrome, open website A, and have to sign in again. I believe the problem is from Chromium because I can stay signed in on websi...
I am unable to stay signed in on Chromium and Google Chrome. I sign in to website A, close all tabs, open website A again, and am still signed in. I quit Chromium or Google Chrome, open website A, and have to sign in again.
I believe the problem is from Chromium because I can stay signed in on website A on other browsers. I checked [this thread](https://support.google.com/chrome/thread/2211795?hl=en) and confirm that at
After I quit and restart Chromium, all cookies from facebook are gone:
Another problem that could be related is that each time I launch Chromium or Chrome, I get these two alerts, as if I were launching it for the first time:
I believe this is a problem with the browser on this operating system because of these two alerts, and because Brave which is also based on Chromium does not give these problems.
And for reference, my settings do not ask to clear cookies after restarting:
**Second update**: I updated Chromium (Version 86.0.4207.0 (Developer Build) (64-bit), 18 July 2020) and Google Chrome (Version 84.0.4147.105 (Official Build) (64-bit), 18 July 2020) and they both have the same problem. I verify that cookies are enabled, sign in to a website, quit the browser, go to the same website, and I am signed out, even though the website has cookies stored. Here is an example of cookies from StackOverflow saved on the browser, which looks the same for Chromium and Chrome:
**Note**: Moved to [SuperUser](https://superuser.com/questions/1575143/why-do-chromium-and-chrome-delete-sign-in-cookies-after-closing-the-browser) .
chrome://settings/content/cookies
, I have disabled Clear cookies and site data when you quit Chrome
. That issue seems to continue unsolved.
I am using Chrome 81.0.4044.138
and Chromium 766739
.
How can I stay signed in on a website with Chromium or Chrome?
**Update**: I reinstalled Chromium and Google Chrome and have the same problem. I have since learned how to [inspect cookies](https://stackoverflow.com/questions/3274875/how-to-get-cookie-expiration-date-creation-date-from-javascript) . On Facebook, for example, I have cookies that expire in 3 months:






ginjaemocoes
(1113 rep)
May 10, 2020, 02:42 PM
• Last activity: Dec 16, 2021, 06:25 PM
3
votes
1
answers
14628
views
Allowing cookies from a specific site in Safari
I'm a new Mac user and I have a financial site which says I must allow cookies...and I'm okay with that, I just don't know how to do that. I've looked in my settings and preferences but it appears I have to allow cookies for everyone or no one at all. Would someone be able to help me? I'd rather not...
I'm a new Mac user and I have a financial site which says I must allow cookies...and I'm okay with that, I just don't know how to do that. I've looked in my settings and preferences but it appears I have to allow cookies for everyone or no one at all. Would someone be able to help me? I'd rather not add additional programs if I can avoid it... OS X must be able to do this, right?
Teay
(31 rep)
Aug 4, 2015, 06:27 PM
• Last activity: Oct 28, 2021, 04:21 PM
1
votes
0
answers
312
views
How to revoke cookies tracking permission on iOS Safari?
Today, when I logged in my Outlook account, a pop up dialog appeared asking me whether I allow “microsoftonline.com” to use cookies and website data while browsing “microsoft.com”. It does not allow me to login if I choose Don’t Allow, but after I press Allow, I cannot find a way to revoke the permi...
Today, when I logged in my Outlook account, a pop up dialog appeared asking me whether I allow “microsoftonline.com” to use cookies and website data while browsing “microsoft.com”. It does not allow me to login if I choose Don’t Allow, but after I press Allow, I cannot find a way to revoke the permission.

Does anyone know if there is such a setting to revoke the permission? I’m on iOS 14.
tonychow1997
(111 rep)
Jul 25, 2021, 10:22 AM
• Last activity: Jul 25, 2021, 01:55 PM
Showing page 1 of 20 total questions