Blog Post

Safari losing your cookies?


Since upgrading to Leopard (and thus upgrading to the newest version of Safari), I’ve had the unfortunate problem of Safari throwing all my cookies right out the window.

Every 4-6 weeks I’d fire up Safari only to realize that all logins to various sites were lost, making me either go through each site’s password-retrieval system or try to dig through Wallet to try and find it.

The bug doesn’t seem to have a real “fix” but there is something you can do to solve the problem easily each time it happens (assuming you use Time Machine).

  1. If you’re currently running Safari, be sure to quit before proceeding.
  2. In Finder, navigate to ~/Library/Cookies. There will most likely only be one file in the folder, which is named Cookies.plist.
  3. With that Finder window open, launch Time Machine and go “back in time” to the last time you used Safari and had functioning cookies. Select the Cookies.plist file and Restore it.
  4. Once the file has been restored, relaunch Safari and your previous, working set of cookies should now be functional.

Each time this happens, be sure to submit the bug to Apple by going to the Safari menu and clicking on “Report Bugs to Apple…”. They read them and the more people send in about bugs, the sooner those bugs will get fixed.

7 Responses to “Safari losing your cookies?”

  1. Just saw this thread. It’s Oct. 10 2008 and I had Safari stop keeping cookies, esp. log-ins and passwords about a week or so ago. I remember allowing an Apple update about then. It bugs the hell out of me having to re-log each time I visit sites that use a name/pass. I’m on 10.4.11 and Safari 3.1.2 (4525.22). What is up?!! How do I remedy? Thanks!

  2. Another thing to check, as it got me a couple of times, is if you are running off of “safe preferences.” Safari and other apps now have a feature (don’t know when it was introduced) that when they crash and you tell it to ignore/restart the app enough times (a few?) it will eventually assume that something is wrong with the prefs and work from the “Safe Preferences” folder.

    When Safari crashes now I cancel the report/ignore dialog and relaunch by hand. Haven’t seen it use safe preferences yet.

    The hidden nature of this safe preference switch-over is a bit annoying. I’d think a better approach would be to offer a new button or dialog spelling out the option to “use safe preferences.”