Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dontlan

macrumors regular
Original poster
Jan 9, 2024
124
10
every time I clear my safari history, I log out on all sites, why is this happening?
 

Attachments

  • photo_2024-03-20_18-50-15.jpg
    photo_2024-03-20_18-50-15.jpg
    24.5 KB · Views: 94
Why? ¯\_(ツ)_/¯ ask an Apple developer.

I suspect it's because if you want to remove history, you're trying to remove all evidence of accessing that site. Which would include cookies.
 
Why? ¯\_(ツ)_/¯ ask an Apple developer.

I suspect it's because if you want to remove history, you're trying to remove all evidence of accessing that site. Which would include cookies.
apple has left my country, so I don't have the opportunity to write to them(
 
Use the app named "Cookie" to manage your cookies and clear Safari data and caches.
It's "the best there is".
Nothing else I've seen that works as well.
 
every time I clear my safari history, I log out on all sites, why is this happening?
Simply put, your login access is stored in a cookie that you are deleting.My memory may be wrong but I believe other browsers (Chrome and Firefox I’m recalling) allow you to delete history and other temporary files without deleting cookies.
 
  • Like
Reactions: NoBoMac
It doesn't help
That is what is supposed to do and what it should be doing. If cookies were not deleted, there would be a record (history) of the websites you visited based on the cookies stored.
Use a private window for the websites you don’t want to keep in your history and a normal window for the websites you log into.
Browse privately in Safari on Mac
 
  • Like
Reactions: Scepticalscribe
My memory may be wrong but I believe other browsers (Chrome and Firefox I’m recalling) allow you to delete history and other temporary files without deleting cookies.
Yes, both have that capability.

IIRC, Safari did in the past as well but "simplified" the process to clear everything (quick Google points to Safari 7 was last version that one could do that in).
 
Last edited:
  • Like
Reactions: Nermal
None of you guys helped me.


I click the clear history button in safari and I log OUT OF ALL ACCOUNTS
 
Delete history without deleting cookies
- from Terminal
Code:
rm ~/Library/Safari/History*
- AppleScript that can be saved as an app
AppleScript:
do shell script "rm ~/Library/Safari/History*"
 
Delete history without deleting cookies
- from Terminal
Code:
rm ~/Library/Safari/History*
- AppleScript that can be saved as an app
AppleScript:
do shell script "rm ~/Library/Safari/History*"
these commands do not delete the history. I have checked several times
 

Attachments

  • 1711261453256.png
    1711261453256.png
    14.5 KB · Views: 57
Close Safari, give Full Disk Access to Terminal (in System Settings - Privacy & Security - Full Disk Access), run rm ~/Library/Safari/History*, open Safari – History (⌘Y).
 
OP wrote:
"None of you guys helped me."

Did you try "Cookie"?
IT will "help you".

Here's Cookie's working screen:
cookie.jpg

Take a good look at it.
You can check or UNcheck things to be removed or saved.

Once again:
Cookie will do what you want, with a few clicks of the mouse.
It can do MORE THAN "what you want"...
 
Or: Safari > History > Show All History, Safari > Edit > Select All, Safari > Edit > Delete

Will churn a long time if left open, so might want to quit Safari for a tick and restart.

But will keep a "backup" around as an SQLite equivalent of a transaction log is kept as part of the database used for history management.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.