Local storage is cleared after restarting a browser
-
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.
-
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.
-
Clayn last edited by
@burnout426 Unfortunately, that didn't help, all the flags are set the same way and security properties are all ticked
-
burnout426 Volunteer 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?
-
Clayn last edited by Clayn
@burnout426 Yes, just checked. All data saved in local storage of standalone application persists.
-
burnout426 Volunteer 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.
-
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.
-
Clayn last edited by
Ok, it works now.
What I did:- Renamed "Opera GX Stable" folder to "Opera GX Stable old" at C:\Users*User*\AppData\Roaming\Opera Software.
- Ran Opera installation, it creates new "Opera GX Stable" folder.
- Moved all the files from "Opera GX Stable old" to "Opera GX Stable"
Seems like some file went missing or something
-
burnout426 Volunteer 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.