Problems with restore sessions
The battery of my laptop doesn´t work anymore so it needs to be plugged all the time. I know that fixing/changing the battery will solve my problem. The problem is that everytime my battery dies i have to restart my laptop and lately when i want to restore my firefox session it wont restore my latest session, it restore a session from a few weeks a go and its really a pain in the ass because i usually have a bunch of tabs open and it takes a while to search and re-open the tabs that i was using. Anyone know how i can solve/fix this issue? Thanks in advance
所有回复 (3)
You may have corrupt sessionstore [v56] sessionstore.jsonlz4 file(s). Delete all sessionstore* files and the sessionstore-backups folder.
Type about:support<enter> in the address bar.
Under the page logo on the left side, you will see Application Basics. Under this find Profile Folder. To its right press the button Show Folder. This will open your file browser to the current Firefox profile. Now Close Firefox.
Windows: Show Folder; Linux: Open Directory; Mac: Show in Finder
Linux: Under the page logo on the left side, you will see Application Basics. Under this find Profile Directory. To its right press the button Open Directory.
Locate the above file. Then rename or delete it. Restart Firefox.
Don't delete the files if you need to rescue any data from
them, just move them out of the profile folder to some
location where Firefox doesn't look for them. You can
try to read out their contents using this tool:
https://www.jeffersonscher.com/res/scrounger.html
You should also run disk scanners to check for errors.
How To Use Microsoft ScanDisk {web link}
Perform a System File Check to fix corrupted system files
Win 7, 8, 10, Vista: https://support.microsoft.com/en-us/kb/929833 Win XP: https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/system_file_checker.mspx?mfr=true
Wiki - Windows 10 System File Check http://answers.microsoft.com/en-us/windows/wiki/windows_10-update/system-file-check-sfc-scan-and-repair-system-files/bc609315-da1f-4775-812c-695b60477a93
When Firefox isn't closed properly when the battery dies then a new sessionstore.jsonlz4 isn't created and Firefox may restore an older session on the next start. In such a case the files in sessionstore-backups folder might be useful, but it might be better to use a sessionstore extension.
- https://addons.mozilla.org/firefox/addon/tab-session-manager/
- https://addons.mozilla.org/firefox/addon/my-sessions/
Backup the session files in the sessionstore-backups folder in the Firefox profile folder to make sure not to lose possible important session data. Do NOT close Firefox when Firefox is already running.
You will normally find these files in the sessionstore-backups folder:
- previous.jsonlz4 (cleanBackup: copy of sessionstore.jsonlz4 from previous session that was loaded successfully)
- recovery.jsonlz4 (latest version of sessionstore.jsonlz4 written during runtime)
- recovery.baklz4 (previous version of sessionstore.jsonlz4 written during runtime)
- upgrade.jsonlz4-<build_id> (backup created during an upgrade of Firefox)
You can copy a file from the sessionstore-backups folder to the main profile and rename the file to sessionstore.jsonlz4 to replace the current file (make sure to backup the current sessionstore.jsonlz4).
You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.
- Help -> Troubleshooting Information -> Profile Folder/Directory:
Windows: Open Folder; Linux: Open Directory; Mac: Show in Finder - https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data