Delete Cookies

Introduction

There have been reports that some versions of Safari ignore user preferences to Never Accept Cookies. Users could use an AppleScript to Reset Safari at launch or install the excellent Safari Cookies to delete cookies when Safari quits. Delete Cookies is an alternative which deletes a user's cookies file every minute. Apart from removing all cookies stored on disk it does not clash with other methods. None of these methods inhibit session cookies stored in RAM and hence, unlike the more effective Never Accept Cookies used by other browsers and earlier versions of Safari, they should not inhibit financial transactions etc.

Compatibility

Delete Cookies is for OS X only. It has only been tested on Leopard but it will probably work on other versions of OS X and it is unlikely to do any harm if it does not work.

Installer

The Delete Cookies installer installs a new User Launch Agent which ensures that a user's cookies file is deleted every minute. Delete Cookies will be active immediately without the need to restart. The installer:

  1. disables any earlier versions of Delete Cookies
  2. installs a new file at ~/Library/LaunchAgents/delete-cookies.plist
  3. activates the new file

Uninstaller

The uninstaller:

  1. disables Delete Cookies
  2. deletes the file at ~/Library/LaunchAgents/delete-cookies.plist

Download

Delete Cookies can be downloaded from: http://links.zero.eu.org/os-x/delete-cookies/delete-cookies.zip

Technical

Tests indicated that QueueDirectories and WatchPaths were unreliable as they are disabled if there is a race or if a path does not exist. StartInterval has always worked well. A workaround has been used (see plist) for the lack of a simple route (such as ~/) to a user's Home directory from a normal plist script.

Support

Please send comments and reports of difficulties to Neville.

html | css | 373 hits since August 2012 | updated 2020-06-07 | webmaster