Some Internet sites, including Google, are automatically logged out even though they have not been touched, and the device registration for skipping the Two-Factor Authentication is automatically canceled, which is cumbersome to go through the Two-Factor Authentication every time.
I didn’t delete the cookies separately, and I didn’t set it to delete them automatically.
I searched the forum to see if anyone had experienced the same problem as me and found similar cases, but the issue was not fixed in that post.
https://community.brave.app/t/persistent-auto-logout-issue-in-brave-help-needed/605435/7
I’ve been using it well so far, and the problem has occurred about a week ago.
@Pineapple1999 is a known issue and nobody has been able to figure it out completely yet. Most of us users have no problem with this. That said, they have some testing going on with Nightly. Open Github is below:
opened 07:03PM - 19 Mar 25 UTC
needs-investigation
OS/Windows
priority/P2
webcompat/not-shields-related
OS/Desktop
### Description
Starting ~3mo ago or so, several users have reported that they … are being logged out of websites when they close/relaunch the browser. Most of these users have confirmed that they do not have the `Forget me when I close this site` Shields protection enabled, nor do they have data set to be clear "on exit".
While it _might_ be related to extensions and/or individual profile setups, it seems unlikely that all of the users reporting this have the same extensions and/or setups, or if they do have similar setups, the common thread is likely a setting in Brave itself, pointing to it potentially being a bug/issue in the browser.
Some users have reported that the following ["solution"/"workaround" resolves the issue](https://community.brave.com/t/brave-keeps-logging-me-out-of-google/599655/5?u=mattches), but users should not have to take these steps to simply stay logged into websites when they close/relaunch the browser:
> 1. In a Brave Browser New Window go to `brave://settings/content/javascript`
> 2. Scroll down that javascript settings page to Allowed to use javascript
> 3. Click the `Add` button
> 4. Enter `[*.]google.com` as the site . . . but do not enable `Current Private session only`
> 5. Click the `Add` button
> 6. Repeat those steps for:
> ```
> [*.]firebaseapp.com
> [*.]gmail.com
> [*.]googleapis.com
> [*.]googleusercontent.com
> [*.]gstatic.com
> [*.]youtube.com
> ```
Users have reported this issue occurring on Windows, macOS and Linux systems. Most of these reports are specific to sites that use Google accounts/auth logins, but some users report this occurring for other sites as well.
### Steps to reproduce
N/A
### Actual result
Users keep getting logged out of sites when closing/relaunching the browser
### Expected result
Users should stay logged into sites after closing/relaunching the browser unless they have `Clear data on exit` or `Forget me when I close this site` options enabled.
### Reproduces how often
Easily reproduced
### Brave version (brave://version info)
v1.76.74 -- but issue has been occurring for several months now.
### Channel information
- [x] release (stable)
- [ ] beta
- [ ] nightly
### Reproducibility
- [x] with Brave Shields disabled
- [ ] with Brave Rewards disabled
- [ ] in the latest version of Chrome
### Miscellaneous information
User reports:
- [I get logged out of google after closing brave](https://community.brave.com/t/i-get-logged-out-of-google-after-closing-brave/605145/11)
- [Brave keeps logging me out of google](https://community.brave.com/t/brave-keeps-logging-me-out-of-google/599655/)
- [Brave disconnecting from websites](https://community.brave.com/t/brave-disconnecting-from-websites/603631)
- [Persistent Auto-Logout Issue in Brave – Help Needed!](https://community.brave.com/t/persistent-auto-logout-issue-in-brave-help-needed/605435)
- [Brave Keeps Logging Me out of All Accounts 2 to 3 times a week](https://community.brave.com/t/brave-keeps-logging-me-out-of-all-accounts-2-to-3-times-a-week/598686)
- [Im getting logged out of Google Services](https://community.brave.com/t/im-getting-logged-out-of-google-services/583885)
- https://www.reddit.com/r/brave_browser/comments/1jazy1f/brave_logging_me_out_problem/
- https://www.reddit.com/r/brave_browser/comments/1ihsgzn/why_does_brave_all_of_a_sudden_keep_logging_me/
- https://www.reddit.com/r/brave_browser/comments/1di35hl/constantly_being_logged_out_of_gmail_and_youtube/
- https://www.reddit.com/r/brave_browser/comments/1jbydlc/spotify_web_player_just_wont_keep_me_logged_in/
- https://www.reddit.com/r/brave_browser/comments/1ja4yye/new_to_the_brave_browser/
- https://www.reddit.com/r/brave_browser/comments/1idn0xm/why_every_site_logged_out_all_of_a_sudden/
- https://www.reddit.com/r/brave_browser/comments/1i9uahr/google_keeps_logging_me_out_when_i_close_and/
- https://www.reddit.com/r/brave_browser/comments/1hl929b/brave_logs_me_out_regardless_of_settings_at_random/
Will continue to add them here as I see them. Shout out to @saoiray for aggregating all these recent threads.
cc @ryanbr @rebron @ShivanKaul
With the latest being everything below:
We’d like you to help us debug this issue by toggling some features to the Disabled
state on brave://flags
and reporting if anything changes. Please ensure you’re on Brave v1.83.85 or newer.
Here are the flags to test at this stage:
brave://flags/#brave-domain-block-1pes
brave://flags/#brave-farbling
brave://flags/#brave-first-party-ephemeral-storage
brave://flags/#brave-provisional-tld-ephemeral-lifetime
Testing Instructions:
Toggle only one feature at a time to Disabled
Restart the browser completely
Test the functionality (login, restart, try multiple times)
Report back whether the issue persists
This systematic approach will help us identify which specific feature might be causing the problem.