Persistent cookies fail!

Shields | Advanced Controls settings

“Allow All Cookies” is selected
“Forget me when I close this site” is unchecked

Cookies are still deleted on close.

There is no way to exempt a site from “Delete cookies on exit” global setting. So why offer the above options in Shields?

This has been an unresolved issue for years. I understand the privacy implications but there are trusted web sites where persistent cookies are extremely useful.

1 Like

@jqp123 let me walk through this and see if I’m following you.

On Shields? If so, all this setting does is determine if you want to allow websites to track you. Usually it’s best to choose Block third party cookies enabled rather than allow all, but it’s up to you. Neither one would delete cookies when you exit. (Block all should prevent cookies, so would never exist to begin with)

Okay, globally and per site?

That’s correct.

Because Forget me when I close this site is a different setting. If you enable it globally then it will be the default setting and you can turn it off on a per site basis. Or you can do the opposite, leave disabled and only turn on for the sites you want to clear cookies.

If you have everything set as we talked about above and aren’t using Forget me when I close this site, then Brave isn’t erasing cookies. It may be that those sites have cookies set to expire on a timeframe or perhaps the randomization from Shields have them seeing you as a different device and is voiding out the existing cookie.

In terms of the latter, have you tried disabling Shields for the sites? Or at least to turn off fingerprinting protection and see if you notice an issue?

And are there any sites in particular where you are able to replicate this issue? Are you saying it happens when you leave the site, only when you close Brave, or what?

In addition, generally is helpful as well if you share things like which OS you’re on, the version of Brave you’re using, etc.

Thanks for the reply.

Windows 10, Brave version 1.68.141

The objective is to override the global “Delete cookies on exit” setting on a per site basis.

This global “on exit” setting achieves the desired behavior in most cases. But believe it or not, there are actually some cases where it is not … where cookies should be allowed to persist beyond closing the current Brave session — for weeks, months or even years. This is not about tracking, it is for user convenience with some service providers (one of them being me).

As far as I can tell, this setup simply cannot be achieved in Brave. And not for lack of trying and testing — with my own web site and with others. This is not a problem with Chrome or Firefox or most derivatives — just Brave.

If “Delete cookies on exit” is configured in settings, it seems that nothing else matters. Cookies are always deleted “on exit” — per site settings are irrelevant. Any sort of per site setting has no effect.

The postings here show that this issue has been brought more than once over the years without any successful resolution.

Correct, so you don’t use that option. This is a chromium thing and something that Brave has moved past, but it’s there because it’s central to Chromium.

Right, so go to brave://settings/shields and you have Forget me when I close this site. This is the global setting, meaning it’s the default action for all websites.
image

  • If you have it off, then Brave will keep cookies by default.
  • If you enable this setting, then it will clear cookies by default.

Then as you visit websites, you can change their individual settings in Shields, which is the image icon that appears in our address bars. When you click it, you get options such as below:

image

Whatever I change via the Shields widget there on the address bar will only impact the website I’m visiting. It is how you make exceptions on a per site basis. This is how you determine your per site basis. It’s just the question of which you want as default options.
.
.

And yes, as a WARNING, if you ever Delete browsing data, that overrides everything else. So ideally you’ll never use it overall except to perhaps clear History or something.

But never would want to clear Cookies and other site data or Site and Shields Settings unless you’re wanting to purge any changes you’ve made. As I said at the beginning, overall I’d ignore this and only use “as needed.”

No, it does not.

If you have “cookies” checked in Settings | Privacy and Security | Delete Browsing Data | On exit, all other “per site” settings are ignored and irrelevant. Cookies are deleted “on exit” regardless.

The only way to allow cookies to persist for one site is to allow them to persist for all sites by changing the setting referenced above.

I already said that. Then I told you to leave that setting unused and to use the other setting and gave you clear instructions. In fact, I told you this twice in one reply:

And what did I tell you to do instead?

Do you understand what a pain it is to change Shield settings for most web sites that you visit? This is simply not a practical approach to achieve privacy.

The most practical option that I can see is to tell customers that our web site is simply not compatible with Brave.

@jqp123, it seems there might be some confusion, so let me clarify. You have two options for setting how Brave handles cookies globally:

If you go to brave://settings/shields, you’ll see the option Forget me when I close this site. This setting applies globally, meaning it’s the default action for all websites.

  • If you have this setting off, Brave will keep cookies by default. You would only need to enable it for the few specific sites where you want cookies cleared.
  • If you turn this setting on, Brave will clear cookies by default for all sites. You would only need to disable it for the specific sites where you want to be remembered.

Hopefully, this clears up how you can manage cookies globally without adjusting settings for every site individually.

This option is similar to what you’re used to. You have one global setting, and you can easily whitelist the websites you want. It’s straightforward and doesn’t require any extra effort.

Regarding the method to delete On Exit in the Delete Browsing Data settings, it’s important to note that using this option would override any other settings you’ve made. This method is best avoided by most users unless you specifically want to purge everything. It’s better to use the other method described, as it offers more control without disrupting your preferences.

Thanks for all your help — problem is resolved!

Don’t “Delete on Exit”
Do “Forget on close”

I’ve been using “Delete on Exit”" for years — perhaps before “Forget” was an option.

1 Like

I sure wish there were some simple/clear instructions how to use this feature - deleting (all except selected cookies) on exit it seems to be a core value-add of Brave.
Trying to follow instructions through 10 posts of back and forth does not qualify as simple or clear. It remains unknown whether this function actually works in Brave…?