Description of the issue: Cookies aren’t cleared when the Shields option “Forget me when I close this site” is turned on.
How can this issue be reproduced?
Open the browser, then log in to GitHub.
Turn the Shields option “Forget me when I close this site” on.
Exit the browser.
Launch it back, then go to GitHub.
Still logged in.
Expected result: Cookies should be cleared.
Brave Version( check About Brave): Version 1.78.97 Chromium: 136.0.7103.93 (Official Build) (64-bit)
Additional Information: Been having issues with cookies being either cleared when they shouldn’t, or not cleared at all since I started using Brave a couple of months ago. Note that it’s also possible to reproduce the issue with a fresh install of Brave Beta.
@Meivyn I think this is because you’re closing the browser, rather than the tab itself. I just tested this on my end – closing the browser does not clear site data when Forget me when I close this site is enabled. However, if you close the tab itself, the site data will be cleared.
Note that it does take a very short amount of time to actually clear after closing the tab – I believe this is to prevent users from accidentally closing a site and subsequently clearing all the data immediately. So there is a short gap between closing the site and the actual data being deleted.
My goal is to clear all cookies on exit/when closing tab but for sites on the whitelist. Is there a way to achieve that? I’ve read that the On Exit settings of Chromium would ignore the whitelist. It seems weird to me that the tabs aren’t considered as closed when the browser itself is closed. Is this intended?
I think this is the intended functionality of the Chromium engine, yes. I believe that if you change the On startup settings of the browser you’ll get the desired behavior, as any open tabs will be closed/cleared each time you relaunch the browser.
I don’t want to clear the tabs though. I am a tab hoarder so I have like 500 tabs opened in multiple groups (waiting patiently for Brave to support workspaces) but I do not want the cookies to be saved between sessions. Does Brave allow us to do that? Otherwise I guess I’d have to rely on an extension.
I’m almost certain that I’ll still have issues with cookies though regardless, I noticed that cookies from the whitelist were cleared up after a reboot despite all clearing options being off. I’ll provide more details once I’m getting the issue again.
@Meivyn Unfortunately, until this gets implemented in the browser, the exact functionality you want is not available:
For now, I think the best solution here would be to ensure that you close the tab in which you have Forget me when I close this site enabled on, or to use a browser extension as you mentioned.
Yeah so after a reboot, cookies got cleared once again. Considering what you said, I’d assume that it isn’t supposed to clear everything unless I’m closing all tabs manually (and it also cleared whitelisted domains). Everything in “On Exit” is turned off in the Chromium settings.