• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Local storage is cleared after restarting a browser

    Opera GX
    3
    13
    1437
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Clayn
      Clayn last edited by

      Resently I cleared my cache and cookies, after that my local storage stopped persisting through browser restarts.

      Also, don't know if it's an expected behaviour, but I see that session files in C:\Users<User>\AppData\Roaming\Opera Software\Opera GX Stable\Sessions are being deleted on browser startup.

      Reply Quote 1
        richardmphopheya 1 Reply Last reply
      • burnout426
        burnout426 Volunteer last edited by burnout426

        Check the permissions of your "C:\Users\yourusername\AppData\Roaming\Opera Software" and "C:\Users\yourusername\AppData\Local\Opera Software" folders to make sure your user has both read and write access to all their files and folders. (Right-click "Opera Software" folder, goto "properties" and switch to the "Security" tab. Also make sure in properties that the folder and its contents are not set to read only.)

        At the URL opera://settings/content/siteData, make sure the default behavior is set to "Allow sites to save data on your device" and make sure all customized behavior lists are empty.

        At the URL opera://settings/cookies, make sure it's set to "Block third-party cookies in Incognito mode" and make sure the allow list is empty.

        At the URL opera://settings/onStartup, make sure it's set to "Retain tabs from previous session".

        If you're using Opera Sync, turn it off for a while to test if the issues go away.

        Reply Quote 0
          Clayn 1 Reply Last reply
        • Clayn
          Clayn @burnout426 last edited by

          @burnout426 Unfortunately, that didn't help, all the flags are set the same way and security properties are all ticked

          Reply Quote 0
            burnout426 1 Reply Last reply
          • burnout426
            burnout426 Volunteer @Clayn last edited by

            @clayn Can you confirm that a test standalone installation to a folder named "Opera GX Test" on your desktop keeps things in tact through a restart?

            Reply Quote 0
              Clayn 1 Reply Last reply
            • Clayn
              Clayn @burnout426 last edited by Clayn

              @burnout426 Yes, just checked. All data saved in local storage of standalone application persists.

              Reply Quote 1
                burnout426 1 Reply Last reply
              • burnout426
                burnout426 Volunteer @Clayn last edited by burnout426

                @clayn If you rename the "Opera GX Stable" folder in both "C:\Users\yourusername\AppData\Roaming\Opera Software" and "C:\Users\yourusername\AppData\Local\Opera Software" to "Opera GX Stable old" (while Opera is closed of course), does your regular Opera GX installation behave then?

                You can delete the "Opera GX Stable" folders and rename your old ones back when you're done testing.

                Reply Quote 0
                  Clayn 1 Reply Last reply
                • Clayn
                  Clayn @burnout426 last edited by

                  @burnout426 Yeah, it works fine that way

                  Reply Quote 1
                    1 Reply Last reply
                  • burnout426
                    burnout426 Volunteer last edited by

                    Okay. I would make a backup of your "Opera GX Stable" folders and then start playing around with deleting certain files/folders in them.

                    For example, you can delete the "Cookies" file in the "Network" folder and the "Local Storage" folder to see if that fixes things.

                    Next might be the "IndexedDB" folder or the "Sessions Storage" folder or the "Sessions" folder itselt.

                    Just don't have Opera Sync enabled when testing.

                    You might try going to the URL opera://settings/reset and resetting your settings.

                    If you can narrow it down, you can restore your "Opera GX Stable" folders from your backups and then just delete the thing that fixed it.

                    Reply Quote 0
                      1 Reply Last reply
                    • richardmphopheya
                      richardmphopheya @Clayn last edited by

                      @Clayn even me so if you can get help ndont forget me

                      Reply Quote 0
                        1 Reply Last reply
                      • Clayn
                        Clayn last edited by

                        Ok, it works now.
                        What I did:

                        1. Renamed "Opera GX Stable" folder to "Opera GX Stable old" at C:\Users*User*\AppData\Roaming\Opera Software.
                        2. Ran Opera installation, it creates new "Opera GX Stable" folder.
                        3. Moved all the files from "Opera GX Stable old" to "Opera GX Stable"

                        Seems like some file went missing or something

                        Reply Quote 1
                          burnout426 1 Reply Last reply
                        • burnout426
                          burnout426 Volunteer @Clayn last edited by

                          @Clayn Nice!

                          Reply Quote 0
                            richardmphopheya 1 Reply Last reply
                          • richardmphopheya
                            richardmphopheya @burnout426 last edited by

                            @burnout426 i use mac what can i do

                            Reply Quote 0
                              burnout426 1 Reply Last reply
                            • burnout426
                              burnout426 Volunteer @richardmphopheya last edited by

                              @richardmphopheya You can try everything above. For @Clayn's method that worked, that would look like the following on macOS:

                              Open up Finder, hit command + shift + period to enable the showing of hidden files and folders and browse to "/Users/yourusername/Library/Application Support".

                              In there will you Opera GX profile folder. Something like "com.operasoftware.OperaGX"

                              While Opera is fully closed, you can rename that folder to "com.operasoftware.OperaGXOld", start Opera to let it create a new "com.operasoftware.OperaGX" folder. Then, fully close Opera, select everything in "com.operasoftwareOperaGXOld", copy and paste into the new "com.operasoftware.OperaGX" while choosing to overwrite existing files for everything.

                              There's also this macOS issue that affects cookies. It might also affect Local Storage, but I'm not sure.

                              For the standalone installation test mentioned in a previous comment, on macOS, you'd open a terminal and run a command like this:

                              "/Applications/Opera GX.app/Contents/MacOS/Opera GX" --user-data-dir="$HOME/Desktop/Opera GX Test"
                              

                              I think. I'm not on macOS to test though, so you might have to adjust some things.

                              Reply Quote 0
                                1 Reply Last reply
                              • First post
                                Last post

                              Computer browsers

                              • Opera for Windows
                              • Opera for Mac
                              • Opera for Linux
                              • Opera beta version
                              • Opera USB

                              Mobile browsers

                              • Opera for Android
                              • Opera Mini
                              • Opera Touch
                              • Opera for basic phones

                              • Add-ons
                              • Opera account
                              • Wallpapers
                              • Opera Ads

                              • Help & support
                              • Opera blogs
                              • Opera forums
                              • Dev.Opera

                              • Security
                              • Privacy
                              • Cookies Policy
                              • EULA
                              • Terms of Service

                              • About Opera
                              • Press info
                              • Jobs
                              • Investors
                              • Become a partner
                              • Contact us

                              Follow Opera

                              • Opera - Facebook
                              • Opera - Twitter
                              • Opera - YouTube
                              • Opera - LinkedIn
                              • Opera - Instagram

                              © Opera Software 1995-2025