Restore session after crash window is missing multiple windows and tabs when restoring
I opened Firefox after a restart and it suddenly crashed (didn't even create a crash report). When I reopened it again, it brought me up to the Restore Session error page and I click Restore. Unfortunately, it did not restore all my windows and tabs and I was missing three windows with tabs. I tried to bring the Restore Session error page and it was empty.
Luckily, I was able to recover an earlier version of sessionstore.js and sessionstore.bak. However, when I copied them to the profile folder, it just opens one window of my home page. I am not sure what is going on here. Could someone (Firefox Tech Support) please look at these files to see what is going on? I really need those three windows!
Thank you for your time,
Modified by FlipD9
Do you mean URLs in sessionstore.js?Read this answer in context 2
Additional System Details
- NPRuntime Script Plug-in Library for Java(TM) Deploy
- Next Generation Java Plug-in 1.6.0_29 for Mozilla browsers
- Shockwave Flash 10.3 r183
- Adobe PDF Plug-In For Firefox and Netscape 10.1.1
- BlackBerry WebSL Browser Plug-In
- DivX VOD Helper Plug-in
- DivX Web Player version 184.108.40.2065
- BrowserPlus -- Improve your browser! -- http://browserplus.yahoo.com/
- The plug-in allows you to open and edit files using Microsoft Office applications
- Office Authorization plug-in for NPAPI browsers
- DRM Netscape Network Object
- DRM Store Netscape Plugin
- Npdsplay dll
- User Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Create a new profile as a test to check if your current profile is causing the problems.
See "Basic Troubleshooting: Make a new profile":
There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
If you have submitted Breakpad crash reports then post the IDs of one or more Breakpad crash reports (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx). You can find the IDs of the submitted crash reports on the about:crashes page. You can open the about:crashes page via the location bar, like you open a website.
Does not work.
Most of the time you just replace sessionstore.js with a previous one with all you saved session to restore everything. I've inputted all the sessionstore.js I could recover with no luck in any to load my previous session. I've also converted all the sessionstore.bak I recovered as well to sessionstore.js with no luck. I need someone who can analyze those two files to tell me what's wrong with them and why I can't load my previous session.
Modified by FlipD9
Happened again! This time I had sessionstore.js from my current session copied in another location. This is not right!
Modified by FlipD9
Try to use Firefox/File > Exit to close Firefox if you aren't doing that way now.
Always been doing that.
It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
Delete the sessionstore.js  file and possible sessionstore-##.js  files with a number and sessionstore.bak in the Firefox Profile Folder.
- Help > Troubleshooting Information > Profile Directory: Open Containing Folder
Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
One of the links you provided gave me an idea. However, for it to work I need something to search out all the url within the text and remove any duplicates. Does anyone know of a program that can do that?
Modified by FlipD9
Do you mean URLs in sessionstore.js?
Yes, I am talking about the URLs in sessionstore.js.
Thank you cor-el. After spending some time reading the posts, I finally figured it out. Found a couple good sessionstore.js and sessionstore.bak from the ones I recovered that I was able to start with. I hope that I can restore all the tabs and windows I have lost.
Here are the steps I followed to recover my lost tabs for those who experienced the same thing I went through:
Once you lost your tabs or windows, do not panic!
- Exit Firefox (Firefox > Exit).
- Open up your file recover program, I always go with Recuva. Make sure to do a Deep Scan for all file types if you have that option.
- Search within your user account (C:\Documents and Settings\User).
- Once the scan is finish, find all sessionstore.js and sessionstore.bak within a few hours and recover them on a flash drive or a separate hard drive.
- I then used the link cor-el provide of dickvl’s bookmarklet script to recover my lost tabs and windows.
For those who do not want to bother with figuring it out follow the steps below:
- Open Firefox and then open up the bookmark side panel.
- Right click New Bookmark.
- The New Bookmark window will open. Fill out the following lines:
- To open all opened tabs and windows:
- Name: Open
- Click Add.
- To open all closed tabs and windows:
- Name: Close
- Click Add.
- Open the folder containing all the recovered sessionstore.js and sessionstore.bak.
- Go to Tools > Folder Options.
- On the Folder Options window, got to the View tab and uncheck Hide extensions for known file types.
- Click OK.
- One by one, rename sessionstore.js and sessionstore.bak to sessionstore.js.txt and open the file in Firefox (File > Open File).
- Once loaded, click either Open or Close bookmark to open all the links from the tabs and windows inside sessionstore.js.txt on a new tab.
- Repeat the two step above until you go through all sessionstore.js and sessionstore.bak you recovered or until you have all your tabs and windows. After you are done, make sure to check Hide extensions for known file types again.
Modified by cor-el
Look the heart of this problem is that there is no way to save user tab groups. At the moment saving the last session has unpredictable results because of unpredictable user behavior.
For instance I have 6 named tab groups with 40-50 tabs total between my wife and I. She tends to open multiple FF windows, some with no tabs at all. If she closes the main window (with 50 tabs) _before_ closing the empty windows, then the last session saved will be one with no tabs. And there you go, all my careful tabs organization just vaporized with no way to recover from the 'sessionrestore.js' file.
The only solution I believe is to support user saving and persisting named tab groups
I lost all my tabs and tab groups after a crash. Then I looked at this forum and searched all subdirectories under Program Files/Mozilla and there is not a "session*" under there anywhere, hence I can not restore the earlier sessions. This seems pretty lame - there should be multiple backups of the sessions. Is there a setting somewhere to have it "automatically" backup the sessions? thanks
FLIPD9, Did this actually restore your tabs though and the histories (back button links) in those tabs or just simply a list of URLs for the missing tabs that didnt load?
Modified by ey143
Sorry for the late response, I didn't get a notice of your post.
Both sessionstore.js and sessionstore.bak are located in your Firefox's profile folder under Application Data. To access the Application Data folder, run this, %appdata%, to take you to that folder. Then go to ...\Mozilla\Firefox\Profiles to access your profile.
If you've lost your tabs, you don't really need the statement above since all you need to do is follow my post in how to recover them. There's no automatic back up from Firefox to back up Sessions the way you want. You can set one up with a backup software that back ups your Firefox profile.
No, it just list all of the URL in a Firefox window where I could click on them and rebuild my tabs and windows.