Saving login cookies for specific sites not working

Troubleshooting technical issues is much easier when both the user and support agent practice clear communication. For this reason, we have provided the template below for you to fill out with information about your issue. Please provide as much detail as possible so we can most efficiently resolve your problem.

Delete the any text above the line separator below before posting


I’ve tried using (what I think) are the ways brave should allow for saving cookies for specific sites. I use this feature for saving my logins on specific sites that I frequent (YouTube, email service, etc.).

What I’m trying to do is have only whitelisted sites save cookies so I don’t have to log in to those each browser session, but all other non-whitelisted cookies get deleted.

Description of the issue:
How can this issue be reproduced?

  1. Under: Settings > Privacy and security > Site and shields settings > Block Cookies, I have the sites I want whitelisted added as ‘[*.]website.com’ or just ‘website.com’

  2. Under: Settings > Privacy and security > Site and shields settings > On-device site data, I have ‘Delete data sites that have been saved to your device when you close all windows’ selected, and have the same sites on the whitelist under ‘Allowed to save data on your device’.

  3. I also have: Settings > Privacy and security > Delete browsing data > On exit, saved with the elements I want deleted on exit (including cookies), but does this process happen automatically for each browser session? (With or without this enabled the sites I want whitelisted do not save login data)

Expected result: Logins cookies are saved for whitelisted sites across browser sessions. All non-whitelisted sites should not.

Brave Version( check About Brave): Brave 1.85.120 (Official Build) (64-bit)

Chromium: 143.0.7499.192

Additional Information: I have found the Brave settings very confusing compared to Firefox where I was able to set up this workflow easily and not worry about it again. I really hope there is a way to set this up easily. Thank you.

There is no whitelist for this portion. Whatever is selected there will be purged.

Hi. Thank you for the reply.

What about the other two settings tabs? How do all three differ?

Thank you for the help. :slight_smile:

@rrruuuqyou It has been a long time since I have messed with the particular settings you mentioned, as I rely on the settings Brave has added instead.

All of those that you mention is actually inherited from Chromium. They can and should work, but sometimes changes made there or in Shields can impact each other. For example, below is where I was in the On Device Site Data area. You can see that the things not allowed to save can’t be reversed because it’s controlled by Shields. In other words, a setting I have changed via Shields has it kind of “locked” and can’t be touched.

This would do exactly that, block all cookies on all sites except for the ones you whitelist. Typically this isn’t advised as there is no benefit to it at all and you’re highly likely to experience compatibility issues with websites.

In the Brave/Chromium settings menu, the toggle “Delete data sites have saved to your device when you close all windows” actually acts as a “janitor” for both cookies and other site data. This doesn’t clear it from History, just to be clear.

If you have it set as you mentioned, then it should clear sites except for the ones you whitelisted after you exit Brave.

As said earlier, this is the “nuclear” option. This has a higher level of authority over the other two and doesn’t care to hear what the other settings think should be saved. Whatever you select there will be eliminated.

@rrruuuqyou I was going to suggest you just use Forget me when I close this site and have it enabled by default. Then when you visit websites like Yahoo where you want it to keep your data, you would turn it off via the Shields lion flyover.

So I would go to Settings → Shields and enable it like below.

Global Setting:
image

This basically is combining the other two steps into one. It allows cookies just long enough to do what you’re needing, but then when you leave the website it purges the data.

The whitelist would be disabling like I mentioned. So for example:

So in the above, that’s the “site specific setting” which is seen by the Shields lion icon. You see there’s the forget me when I close this site toggle. It’s on because I had set the global one to on. If I turn off the toggle there, then it will whitelist the site I’m at. This means it won’t clear the data when I leave the site like it would otherwise.

-note-

Overall I guess you need to pick one or the other. Either the built-in Chromium method as you first were experimenting, or you rely more on Brave’s built-in options and privacy controls.

Trying to modify both will likely result in headaches. I did want to present this option though as it should work better overall.

Sorry if I rambled a bit or perhaps didn’t phrase things quite right. I should have been in bed hours ago but didn’t quite make it there. So I’m replying here as I’m kind of “running on fumes.”

Hi!

You explained this beautifully. I actually had already had ‘Forget me when I close this site’ enabled in Settings > Shields on top of my chromium settings, which is why I was getting inconsistent/not working results before this.

I fixed my problems by purging all my chromium settings (all the things I put in my original post that are under Settings > Privacy and security). Now I just go to the Brave icon in the search bar and enable/disable the forget me setting on a site-by-site basis. It works!

I am going to do this on my laptop now as well. Thank you so much. Cheers!

Came here to say exactly what @Saoiray said – namely about using Shields/Forget me when I close this site rather than the options inherited from Chromium. Great work @Saoiray.

Marking this thread as solved – feel free to start a new thread with any additional questions or concerns.