you can keep a whitelist of allowed permament/session/temporary cookies with https://addons.mozilla.org/en-US/firefox/addon/cslite-mod/
1. https://addons.mozilla.org/en-US/firefox/addon/self-destruct...
Same with Vanilla cookie manager on Chrome, except I don't think it deletes localstorage, flash cookies, etc because of limitations of Chrome's api for extensions. I think the attitude with Chrome is that you're supposed to use Incognito windows for this purpose.