How To Restore Previous Session On Firefox

 Posted admin
How To Restore Previous Session On Firefox Average ratng: 10,0/10 7440 reviews
  1. How To Restore Lost Previous Session Firefox
  2. Restore Previous Session Firefox Keyboard Shortcut
How to restore previous session on firefox download

How to restore previous session in mozilla firefox. Visit us for more tutorials. You can restore previous session and tabs manually and automatic. But instead of doing that, I clicked a new tab and opened a newpage, and closed the tab, which closed Firefox out of my expectation (in Chrome browser, closing the only tab doesn't close the Chrome browser). Now clicking History-Restore Previous Session only restore the single tab of webpage.

In this article we’ll consider how to restore the previous session with open tabs in Mozilla Firefox. The problem of loosing all tabs as a result of Mozilla Firefox crash (due to different reasons: from power outages to running out of available memory and system hang) occurs quite often.

The mechanism of automatic Session Restore appeared in the second version of the browser already. Firefox saves all open windows and tabs, including urls of pages, the size and position of a window/tab and information entered into the text fields, into a special file (sessionstore.js). When the session has been completed incorrectly, Firefox tries to automatically restore the previous session based on the data in this file with all windows and tabs that had been opened before the browser failed. If the browser fails in the second time, the window with the following message appears after you start Firefox for the next time:


DownloadWell, this is embarrassing.

Firefox is having trouble recovering your windows and tabs. This is usually caused by a recently opened web page.

You can try:

  • Removing one or more tabs that you think may be causing the problem
  • Starting an entirely new browsing session

Firefox can restore all windows and tabs open at the last exit or unexpected failure of Firefox. If you check the tabs opened earlier that have to be restored and click “Restore” button, Firefox opens these web-pages.

If the Session Restore window doesn’t appear automatically, you can try to call it by clicking History -> Restore Previous Session.

Note. This window can also be called by entering about:sessionrestore in the address bar of the browser.

If Restore Previous Session menu is not active (as in the snapshot), something has gone wrong and you’ll have to use advanced means to restore the tabs.

Firstly, let’s talk about the backup mechanism of open tabs and windows in Firefox. Firefox saves the information about the current session in sessionstore.js, which is located in the user profile folder (C:UsersusernameAppDataRoamingMozillaFirefoxProfilesxxx.default – in Windows 7 and 8, or c:Documents and SettingsusernameApplication DataMozillaFirefoxxxx.default in XP). If you track how its size is changed in process of working in Firefox, you can notice that when opening a new tab/window its size grows, and when closing a tab/window, it reduces.

How To Restore Lost Previous Session Firefox

After its failure, Firefox automatically tries to load the information about open tabs and windows from sessionstore.js. If this file is damaged, unavailable, has wrong format or browser doesn’t see it on some reason, Firefox starts a new clean session, and Restore Previous Session menu becomes inactive. However, there is no reason to give up — there are some other ways to restore the list of previously opened tabs.

The matter is that sessionstore.bak that contains information about the previous Firefox session is stored in the same profile directory. This file is a copy of sessionstore.js, which is automatically created if Firefox has failed in the previous time.

Important. Before going to the manual method of recovery, back up your files sessionstore.js and sessionstore.bak by copying them to any directory.

Close Firefox and rename sessionstore.bak into sessionstore.js (with replacement), then try to run Firefox again. Look, if the previous session restore has been successful.

Tip. This directory also can find sessionstore-1.js, sessionstore-2.js, etc.. These are the earlier copies of open sessions. Look at the date when these files have been created. If the session recovery on this date suits you, try to rename sessionstore-1.js into sessionstore.js and run Firefox.

If this means hasn’t helped, you can try to get a URL list from sessionstore.js files. The file format is quite specific. You can analyze file contents manually and find all open pages that are contained in the constructions starting from “url”:”http, but it’s quite hard and time consuming.

Let’s try to automate extraction of urls from this file:

  • First of all, you need to install Firefox extension for developers Firebug (Firefox -> Add-ons – > Get Add-ons -> Firebug – > Install).
  • Then find the previously copied file sessionstore.js and rename it into sessionstore.txt.
  • Open this file in the browser (Firefox->New tab ->Open file, specify the path to the txt file).
  • Run Firebug console (Firefox->Web Development->Firebug-> Open Firebug)
  • In the bottom of the window there is a console prompt (it is marked with the red rectangle on the screenshot). Copy the next js-code into it: javascript:(function(){var D=document,H,i=j=0,P=D.getElementsByTagName('PRE'),t=',R=/[^:]{'entries':[{('url':'([^']*)'),('title':'([^']*)'){0,1}/g,T,U;for(j=0;E=P[j];j++){H=E.innerHTML;while(R.exec(H)){U=RegExp.$2;T=RegExp.$4;if(T.length0){T=U;}t+='<b>['+(++i)+']</b> <a href='+U+'>'+T+' ('+U+')</a><br>';}}with(window.open().document){write(t);close()}})(); And press Enter.
  • After that a new tab appears that contains all the links the script has been able to extract from the session restore file.
  • Open the links you need.

How to Check .Net Framework Version?

October 26, 2018

Configuring Kerberos Authentication in Different Browsers

August 1, 2018

Restore Previous Session Firefox Keyboard Shortcut

Adobe Flash Player: Application Initialization Error

December 15, 2017

Fix ‘Access Denied’ Error in Adobe Reader 11

November 26, 2017

Remote Computer Management Using LiteManager

September 2, 2016

I opened about 200 tabs of webpages in Firefox 59.0.2 (64-bit) on Ubuntu 16.04.

I closed Firefox, and then rebooted Ubuntu.

When I started Firefox again, I had a chance to restore the previous 200 tabs of webpages, by clicking History->Restore Previous Session. But instead of doing that, I clicked a new tab and opened a newpage, and closed the tab, which closed Firefox out of my expectation (in Chrome browser, closing the only tab doesn't close the Chrome browser).

Now clicking History->Restore Previous Session only restore the single tab of webpage. Is there some way to restore the previous previous session of 200 tabs of webpages?

Note that it seems to me difficult to find out the previous previous 200 webpages' URLs from most recent history in Firefox. The previous previous session of 200 tabs of webpages were also created by clicking History->Restore Previous Session, and Firefox doesn't actually open all the 200 webpages when I restored it, but open each webpage when I actually click its tab, and I didn't click all of the 200 tabs.

Run5k
12.2k7 gold badges36 silver badges56 bronze badges
TimTim

1 Answer

To avoid having to click on 200 shortcuts:

  • Click CtrlShiftH to view the complete History.
  • Select a series of URL's by using Shift-click or select items one-at-a-time by using Ctrl-click.
  • Right-click on an item and select Open all in tabs.

For future reference, you can tag Bookmarks to make searching and loading a batch easier.

DrMoishe PippikDrMoishe Pippik
11k3 gold badges15 silver badges32 bronze badges

Not the answer you're looking for? Browse other questions tagged firefox or ask your own question.