Deleting all cookies except specific ones on exit or in real time

Description of the issue:

I have tried to make cookies stay on 2 specific websites without success. I currently have all browser data deleted on exit, except for “Site and Shields Settings” and “Forget me when i close this site” enabled.

Steps to Reproduce (add as many as necessary): 1. 2. 3.

  1. All browser data deleted on exit, except for “Site and Shields Settings”.
  2. “Forget me when i close this site” enabled.
  3. Added “kagi” and “youtube” in “Sites allowed to use third-party cookies”.
  4. Restarting browser.
  5. Logged out everywhere including “kagi” and “youtube”.

Actual Result (gifs and screenshots are welcome!):

All cookies deleted. The two sites i want to keep logged in has their cookies deleted and I’m logged out.

Expected result:

Cookies for the 2 sites kept and I’m still logged in. Every other cookie deleted.

Reproduces how often:

Every single time i restart my PC no matter what.

Operating System and Brave Version(See the About Brave page in the main menu):

Bazzite Linux, fully updated.

Brave 1.84.141 (Official Build) (64-bit)

Chromium: 142.0.7444.176

Additional Information:

Unless there’s a misunderstanding, allowing a site to use 3rd party cookies doesn’t have Brave remember the cookies. It means that website may use cookies from another source. (For example, my one bank needs 3rd party cookies or their MFA doesn’t work, but it has nothing to do with saving those cookies on close.)

Which would delete all cookies. There is not an exception list to this.

If you have it enabled globally, then unless you disable it on any specific site, then it would delete cookies when you exit.

This has nothing to do with what you’re trying to do. Third-Party cookies means that you’re allowing other websites or providers to inject cookies. So when you enable that on Kagi you’re saying you want to allow cookies other than the ones at Kagi to be used to track you there.

Correct. You have two methods you have chosen to make sure all cookies were deleted.

If that is the case then i have no idea what i should do.

If you want that, then best way is to go to your global Shields settings at brave://settings/shields and enable Forget me when I close this site. This means by default all websites you visit will have their data erased when you exit.

Then you would do the site specific settings, which is the Shields lion thing image and you would disable Forget me when I close this site for their specific setting

Disabling this on the specific sites (like Kagi) would allow Kagi data to persist because you changed the site specific. But the global setting would still clear all other websites.

1 Like

@xeanos Another method people have shared but I never tried is to avoid all of the settings we mentioned, and instead go to On-device site data via brave://settings/content/siteData

There is an option on that which says Delete data sites have saved to your device when you close all windows.

From there, I think people said you can add specific websites to Allowed to save data on your device which would be the exceptions

But I can’t guarantee this would work. It is, however, the second alternative method I’ve seen shared .

-NOTE-

Any time you do anything from Delete Browsing Data, it will override any other protection you have. There is no exceptions list and it will purge everything regardless

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.