https://support.mozilla.org/en-US/kb/enable-and-disable-cook...
You can also open up a Private Browsing tab if you want to visit a site you don't trust, or simply maintain a separate environment from your main stuff. Private windows have their own cookie store separate from the main store, and also clear their history upon close.
And you can still keep cookies from specific sites by defining an exception. They should better document this feature. For me it would be a good default behavior. There aren’t that many sites where I want to stay logged in.
https://utcc.utoronto.ca/~cks/space/blog/web/FirefoxQuantumA...
"Cookie AutoDelete is my current replacement for Self-Destructing Cookies (which I adopted in my primary Firefox due to switching to uMatrix). I enable autocleaning, turn off showing the number of cookies for the domain and notification, and turn on cleaning Localstorage."
https://addons.mozilla.org/en-US/firefox/addon/cookie-autode...
It also support Multi-Account containers[2], so you can whitelist a particular site only in a particular container. This is obviously a new feature compared to Self-Destructing Cookies since Mutli-Account containers didn't exist back in the time.
[1] https://addons.mozilla.org/en-US/firefox/addon/cookie-autode...
[2] https://blog.mozilla.org/firefox/introducing-firefox-multi-a...
It will accept cookies, but then delete them when you close the tab.
Unfortunately, it (like many other useful extensions) was permanently broken by recent changes to Firefox. I wonder if there are any good alternatives.
[1] - https://addons.mozilla.org/en-US/firefox/addon/self-destruct...