"Self-Destructing Cookies" is an extension for Firefox that automatically deletes cookies 30 seconds after you close the last tab associated with a site, unless you put it on a whitelist.
It is the most sensible and useful policy I have ever seen. Sadly, it can't be done as an extension in the new Firefox model.