Skip to content

Opera Keeps Logging Out of Websites? Fix It

Opera can log you out after a restart if it deletes cookies when the browser closes. Check the cookie settings, on-exit cleanup rules, and third-party cookie restrictions to keep your website sessions active.

Start with Opera's cookie controls, then verify its on-exit cleanup and Password Manager settings. Clear existing site data only if the account is still being logged out.

In this guide, I have covered:

Stop Opera deleting cookies when it closes

Websites use cookies to remember that you are signed in. If Opera deletes those cookies whenever it closes, your accounts will appear logged out the next time you open the browser.

  1. Open Settings in Opera.
  2. Select Advanced in the left sidebar.
  3. Open Privacy & security.
  4. Open Site settings.
  5. Select Cookies and site data.
  6. Turn off Clear cookies and site data when you quit Opera.

You can also paste opera://settings/cookies into the address bar to open the cookies page directly. Opera accepts cookies by default, so leave that setting on for a normal sign-in problem.

Close Opera completely and reopen it, then visit one of the affected websites. If the session stays active, the on-exit cookie setting caused the logout.

note icon

Note: Some Opera builds label the same option Delete data sites have saved to your device when you quit. Open opera://settings/privacy, select Site settings, then look under On-device site data.

Allow the cookies needed by each website

Opera can also block cookies from embedded content or services belonging to another website. Some login systems depend on those third-party cookies, so blocking them can cause repeated sign-ins even when regular cookies are allowed.

  1. Return to Cookies and site data in Settings.
  2. Confirm that Allow sites to save and read cookie data (recommended) is turned on.
  3. Turn off Block third-party cookies.
  4. Sign in again to the affected website.
  5. Close Opera.
  6. Reopen Opera.
  7. Check whether the website keeps you signed in.

If another app blocks third-party cookies for the whole computer, use Opera’s site exceptions instead. See how to block or allow browser cookies in Opera for the exception controls.

Check Opera’s other on-exit cleanup rules

Opera has a separate browsing-data cleanup feature that can remove cookies when the browser closes. This setting may be enabled even when the cookies page looks correct.

  1. Open Settings in Opera.
  2. Select Privacy & security.
  3. Open Delete browsing data.
  4. Find the On exit section.
  5. Disable the option that deletes cookies or site data when Opera exits.

Leave unrelated cleanup options alone. If you are unsure which setting is active, open opera://settings/clearBrowserData to see the data types before clearing anything.

Check whether Opera is deleting saved passwords

Missing saved passwords are a separate symptom. They may be disappearing because Password Manager has an on-exit cleanup option enabled, rather than because Opera cannot retain website sessions.

  1. Open Privacy & security in Settings.
  2. Open Autofill.
  3. Select Passwords.
  4. Select Settings in the Password Manager sidebar.
  5. Turn off Clear Data on Exit if it is enabled.
  6. Confirm that Offer to save passwords and Sign in automatically are set as you want.

Opera automatically syncs passwords across your devices, so the saved list can return after the on-exit cleanup setting is disabled. The Opera saved passwords guide explains how to review and restore the list.

Clear the stored site data after changing the settings

Turning off automatic deletion does not restore cookies that Opera has already removed. Clear the existing cookies and site data once, then sign in again to create fresh login sessions.

  1. Open the Opera browser on your computer.
  2. Click on the Gear settings gear icon in the sidebar to open the Settings menu.
  3. Switch to the Privacy & Security tab and select the Clear browsing data option.
    Clear browsing data option under Privacy and Security settings in Opera browserIt will open the Clear browsing data pop-up window.
  4. Select the Time range from the drop-down options and enable the checkboxes for 'Cookies and other site data' and 'Cached images and files' options.
    Clear browsing data with Cookies and Cache option selected on Opera computer
  5. Hit the Clear data command button.

After signing back in, close and reopen Opera. The account should stay signed in if the cookie settings are correct. You can also clear data directly through opera://settings/clearBrowserData. The Opera cookie and cache guide explains the available cleanup options.

Frequently Asked Questions

Why does Opera log me out when I close the browser?

Opera is probably deleting the cookies that preserve your signed-in session. Turn off Clear cookies and site data when you quit Opera and check the separate On exit cleanup settings.

Why did my saved passwords disappear in Opera?

Password Manager may have been configured to delete its data whenever Opera closes. Turn off Clear Data on Exit in the Password Manager settings, then check whether the automatically synced password list returns.

Should I turn off all cookie blocking in Opera?

Turn off third-party cookie blocking only if a site still cannot keep you signed in. First confirm that Allow sites to save and read cookie data (recommended) is on. Then turn off Block third-party cookies and test that site again.

Will clearing cookies in Opera log me out of every website?

Yes. Clearing existing cookies and site data removes the sessions stored by websites, so you will need to sign in again. Complete this step only after correcting the on-exit cleanup settings.

Please share the article if you find it helpful:

Disclosure: This page may contain affiliate links, which means we may receive compensation for your purchases; of course at no extra cost to you (indeed, you may get special discounts).
Kwame Asante

Kwame Asante

Kwame Asante is a computer engineering graduate. He uses Opera browser instead of stock Chrome for the built-in sidebar and lighter mobile data use. Friday nights are usually cooking for friends, then a little guitar after.

Leave a thought or feedback

Please leave a descriptive comment or feedback with your real name. Our human moderator vets every comment, and it may take 24 to 48 hours to get published or rejected.
Your email address will not be published, and we will never spam your inbox. Required fields are marked *