This WebExtension is inspired by Self Destructing Cookies. When a tab closes, any cookies not being used are automatically deleted. Keep the ones you trust (forever/until restart) while deleting the rest. Firefox containers supported. You can set the cookies that you want to keep (persistent logins) and the rest will be deleted when the tab or window is closed.