Manage exceptions for deleting cookies when browser closed

Can we have a feature to manage exceptions when clearing on exit? Firefox has this feature:

I configure my browser to clear everything on exit. However for duckduckgo, for example, I have configured specific search settings that I want to retain when I restart the browser.