Google.com cookies not being cleared on exit

Sigh another issue with Brave on Windows10 is that I have specified that Brave should delete the google.com cookie on exiting. Doing so will automatically log me out of Gmail. This has worked before in Chrome and Brave but no longer works in Brave. The result is that when I start Brave back up and go to gmail.com I or anyone else near the computer can read my gmail.

If I go into settings and click on trash can icon chrome://settings/siteData?search=cookies for the google.com line then reload the Gmail tab I have to login. Why the heck is Brave not deleting this cookie on exit?

Version 1.3.115 Chromium: 80.0.3987.87 (Official Build) (64-bit)

Open up brave://settings/clearBrowserData and make sure “Cookies and Site Data” is checked in the “On Exit” section. Can you please confirm for me?

If everything is properly set up in your settings but the cookie is not being deleted then we’ll definitely dig in and investigate. :slight_smile:

No that setting is NOT set. I do not want to clear the cookies including the 2FA cookies for all of my Google accounts. That 2FA cookie deletion occurs when I enable that setting. It also deletes all the configuration for YouTube for my google account. This does not happen when I simply click on the Trashcan icon beside the Google.com icon on chrome://settings/siteData?search=cookies

1 Like

Thanks for letting me know. @Mattches do you know if it’s possible to customize which sites have their cookies removed On Exit?

FYI this issue is crossposted on Reddit here

When I go to chrome://settings/cookies/detail?site=google.com&search=cookie and look at the google.com entry it says 13 cookies and expanding to show the detail it displays the following which are the cookies that I believe WERE at one point being deleted automatically and in the process leaving the 2FA cookies untouched:

1P_JAR

APISID

HSID

NID

SAPISID

SID

SIDCC

SSID

__Secure-3PAPISID

__Secure-3PSID

__Secure-APISID

__Secure-HSID

__Secure-SSID

In Firefox I use a third party exentsion “Forget Me Not” to remove “sid@*.google.com” cookies which forces a logout from Gmail but leaves the 2FA cookies untouched.

@fedup,
I’d responded to your thread on Reddit earlier but I think we should continue the conversation here, if you don’t mind. Your last post:

Sorry for crossposting this issue to community forum here. The problem is that I only want to force Gmail logout on browser shutdown without having to remember logging out of Gmail BEFORE closing the browser down. As mentioned in the forum post if I enable the Cookies and other site data option it deletes alot of other google cookies including 2FA ones which I prefer to keep as this is a trusted device.

In Chrome when I was using it simply specifying “google.com” in the cookies page chrome://settings/content/cookies?search=cookie and use Clear On Exit option in the hamburger menu for that particular entry it would delete that cookie and leave the 2FA cookies alone. However that cookie deletion no longer occurs under Brave unless the Cookies and other site data option is also enabled which has more drastic effect that wanted.

So to confirm, you’re not using the On exit function located in History --> Clear browsing data, you’re instead going to brave://settings/content/cookies and adding google.com to the Clear on exit list:

I know this may seem silly but just to be sure; you do have the option at the top to Clear cookies on exit toggled “on”, right?

Yes brave://settings/content/cookies and adding google.com to the Clear on exit list and Google.com is in the Clear On Exit.

No I do not have the option Clear cookies and site data when I quit Brave toggled “on”. If I do enable that then Brave deletes 2FA cookies for other sites like Discord and Reddit and it also takes out cookies for services that use my Google account like Feedly, YouTube settings cookies when I exit Brave. The last time I tried Clear cookies and site data when I quit Brave toggled “on”, I still remained logged into Gmail when I started Brave back up! Reddit, Feedly and Discord are NOT on the Clear on Exit list.

Yet when I go to “brave://settings/siteData?search=cookie” scroll down to the line with Google.com
and hit the garbage can on the line for Google.com and its 15 cookies so that ONLY those 15 cookies are deleted and then go over to my Gmail tabs and reload the Gmail tab I find myself logged out like I should.

By the way I am definitely not going to be using “Cookies and Site Data” is checked in the “On Exit” setting again. It has wiped out a large number of cookies in the browser for sites that I normally do not have to login to along with the site’s preferences. Has something changed in Brave recently to prevent clear on exit from functioning properly?

I just checked and with Chrome Version 80.0.3987.106 (Official Build) (64-bit) I have the same settings for google,com in that its set to deleted the google.com cookie on exit of the browser. I do NOT have “Cookies and Site Data” enabled. When I am logged into Gmail accounts and close Chrome the next time I start Chrome up I am logged out of Gmail. Unlike in Brave which keeps the user logged in. Now I am wondering if Brave is deleting any of the other cookies I have set up under brave://settings/content/cookies?search=cookies under Clear On Exit like [*.]newyorker.com etc