Periodically deleting cookies in Safari It seems as though extensions in Safari can't access cookies. In firefox there is a great add-on that immediately deletes cookies from a site after you close its tab. This is really helpful for viewing sites that require cookies, but that you don't want following you all over the internet.

Is there any approach I could take to mimic this behavior in Safari? I was thinking some sort of watcher on the cookie folder or linking it to /dev/null/, but I'd still like to whitelist some cookies that I don't mind keeping around and I wouldn't want to add much cpu or battery usage either.
If you open Safari in private browsing mode, all cookies you may have are not accessible. Feel free to log in to whatever site you want and the cookies only persist for that session as you are familiar with from Firefox.

If you want to script a periodic purging of all cookies, that is trivial if you use Automator to record the action of launching safari, selecting preferences and selecting the clear all cookies button.

That's probably overkill, since private browsing does about all you ask already.