brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.53k stars 2.27k forks source link

Browser keep deleting cookies after quit #40155

Open mjdNjhNJ opened 1 month ago

mjdNjhNJ commented 1 month ago

Description

After quitting the application all the cookies are deleted. Issue happens on stable and nightly builds. Beta (1.69.129) works as intended.

Steps to reproduce

  1. Log in to a site to persist a cookie
  2. Quit the browser

Actual result

User is no longer log in on the site.

Expected result

User is still logged on the site.

Reproduces how often

Easily reproduced

Brave version (brave://version info)

Stable: 1.68.128 Nightly: 1.70.36

Channel information

Reproducibility

Miscellaneous information

"Forget me when I close this site" is disabled. "Delete browsing data" doesn't delete anything on exit.

rebron commented 1 month ago

@mjdNjhNJ What website are you talking about? Any extensions? Some cookies are session based and will log you out.

mjdNjhNJ commented 1 month ago

@rebron For example: https://proton.me or https://netflix.com

Nels0 commented 3 weeks ago

I'm experiencing logouts on sites too, for example I've definitely noticed it on https://store.steampowered.com/.

Looking at my history, I've had to log in again as soon as 5 days later. I've also noticed this on other sites, but haven't got details of them.

Haven't got a log to know if/why the site itself is rejecting the login cookie. If I can set up better logging for steam.com automatically I'd like to capture a failed saved login, not sure how to.

The login cookie itself has an expiration for next year.

image

Login dates:

Nels0 commented 3 weeks ago

Update - issue just reproduced (unreliabily). I re-launched brave (re-opens tabs that I last had open) and was logged in fine.

I then navigated to a page within the website and was logged out (302 response). I have saved the .har network log but don't know how to anonymize it. It appears the cookies aren't being sent. Partial screenshot of response and request attached:

image