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
121
9
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: 89

FreakinEurekan

macrumors 603
Sep 8, 2011
6,456
3,332
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.
 

dontlan

macrumors regular
Original poster
Jan 9, 2024
121
9
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(
 

Fishrrman

macrumors Penryn
Feb 20, 2009
29,175
13,223
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.
 

VampyricGentleman

macrumors 6502
May 28, 2022
356
3,000
South Wales, UK
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

bogdanw

macrumors 603
Mar 10, 2009
6,099
3,011
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

NoBoMac

Moderator
Staff member
Jul 1, 2014
6,244
4,931
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

dontlan

macrumors regular
Original poster
Jan 9, 2024
121
9
None of you guys helped me.


I click the clear history button in safari and I log OUT OF ALL ACCOUNTS
 

bogdanw

macrumors 603
Mar 10, 2009
6,099
3,011
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*"
 

dontlan

macrumors regular
Original poster
Jan 9, 2024
121
9
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: 50

bogdanw

macrumors 603
Mar 10, 2009
6,099
3,011
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).
 

Fishrrman

macrumors Penryn
Feb 20, 2009
29,175
13,223
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"...
 

NoBoMac

Moderator
Staff member
Jul 1, 2014
6,244
4,931
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.