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:
Contents
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.
- Open Settings in Opera.
- Select Advanced in the left sidebar.
- Open Privacy & security.
- Open Site settings.
- Select Cookies and site data.
- 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: 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.
- Return to Cookies and site data in Settings.
- Confirm that Allow sites to save and read cookie data (recommended) is turned on.
- Turn off Block third-party cookies.
- Sign in again to the affected website.
- Close Opera.
- Reopen Opera.
- 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.
- Open Settings in Opera.
- Select Privacy & security.
- Open Delete browsing data.
- Find the On exit section.
- 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.
- Open Privacy & security in Settings.
- Open Autofill.
- Select Passwords.
- Select Settings in the Password Manager sidebar.
- Turn off Clear Data on Exit if it is enabled.
- 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.
- Open the Opera browser on your computer.
- Click on the Gear
in the sidebar to open the Settings menu. - Switch to the Privacy & Security tab and select the Clear browsing data option.
It will open the Clear browsing data pop-up window. - 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.

- Hit the 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.
