Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Firefox - Restore Previous Browsing Session



Firefox - Restore Previous Browsing Session

How to Restore Previous Browsing Session in Firefox
Published by Brink
16 Jan 2013
Published by

How to Restore Previous Browsing Session in Firefox

information   Information
This tutorial will show you how to reopen the previous browsing session in Firefox from when it was last closed.





OPTION ONE
To "Restore Previous Session" On Demand in Firefox
1. While in Firefox, do step 2 or 3 below depending on if you have the Menu bar on or off.

2. Click/tap on the Firefox button, History, and Restore Previous Session. (see screenshot below)
Firefox - Restore Previous Browsing Session-firefox_button.jpg
OR

3. Click/tap on History (Menu bar) and Restore Previous Session. (see screenshot below)
Firefox - Restore Previous Browsing Session-firefox_menu_bar.jpg




OPTION TWO
To "Restore Previous Session" Automatically when Firefox Starts
1. While in Firefox, click/tap on Tools (menu bar) and Options. (see screenshot below)
Firefox - Restore Previous Browsing Session-always-1.jpg
2. Click/tap on the General icon, under Startup select Show my windows and tabs from last time to the right of When Firefox starts, and click/tap on OK. (see screenshot below)
NOTE: The default setting is Show my home page.
Name:  Always-2.jpg
Views: 940
Size:  76.4 KB
That's it,
Shawn



17 Jan 2013   #1
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 17 MATE (64 bit)
 
 
If FF crashes during close

On my PC, I run multiple profiles and use most of them on a daily basis (often several times per day).
Sometimes FF would crash during close (at least once/fortnight).

I suspect that a Flash Player vs NoScript interaction was the culprit.
I had Process Explorer open and I noticed that when I closed FF, Flash Player tried to start.
I think that maybe NoScript closed too early, which gave Flash a chance to start up (I often leave up to 100 tabs open).

When this happened, it was impossible to use the built-in Session Restore function.

Note:
I haven't seen this since FF 17 came out.
I'm using FF 18 now (fingers crossed).

If you notice that your previous session has been lost when you start FF and the tutorial instructions won't work, you may be able to save your previous session using Option 1 below.

Profile Information

Default Profile Location: "C:\Users\<user name>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile name>"
Default Profile Name: "<8 characters>.default"
My default profile name is "rz7xuytc.default". Yours will be different.
Option 1 - Replace sessionstore.js with sessionstore.bak

You can replace sessionstore.js file with the sessionstore.bak file (you will lose any tabs that weren't Bookmarked).
  1. Go to the FF Profile folder
  2. Copy the sessionstore.js file and the sessionstore.bak to a new location (i.e. make a backup of those files)
  3. Close FF
  4. Delete the sessionstore.js file
  5. Change the name of the sessionstore.bak file to sessionstore.js
When you restart Firefox, your previous browsing session should be restored (not the session that just crashed, but the one prior to that).

Option 2 - Edit sessionstore.js

If you have opened lots of tabs (that you didn't bookmark) you can edit the sessionstore.js file to try and save your current session.

Note:

This option will only work if you notice that FF has crashed during close.

I run a script which allows me to choose which FF profile I want to run (I have multiple profiles) and when FF closes it runs CCleaner (to purge any leftover nasties) and then returns to my FF Profile menu.
I can tell when FF crashes, because the CCleaner notification doesn't appear.
  1. Go to the FF Profile folder
  2. Copy the sessionstore.js file and the sessionstore.bak to a new location (i.e. make a backup of those files)
  3. Close FF (most likely from the Task Manager)
  4. Edit the sessionstore.js file (see Editing below)
When you restart Firefox, your previous browsing session should be restored (the session that just crashed).

Be aware that this doesn't always work for me (50% success rate).
It's possible that I added syntax errors during the editing.

Editing
I discovered (through experimentation) that I could edit the sessionstore.js file to restore the lost session.

At the very end of the sessionstore.js file you will see something like this:
"session":{"state":"running", <data/text to end of file>
For example:
"session":{"state":"running","lastUpdate":1358472611761,"startTime":1352630698661,"recentCrashes":0} ,"scratchpads":[]}

You need to replace the above with this data from the sessionstore.bak file:
"session":{"state":"stopped", <data/text to end of file>
For example:
"session":{"state":"stopped","lastUpdate":1358349460055,"startTime":1352630698661,"recentCrashes":0} ,"scratchpads":[]}

You should use an editor that can highlight JavaScript syntax (Notepad++, Dreamweaver, etc.).
That will allow you to see if you accidentally added any syntax errors (e.g. deleted a bracket).

My System SpecsSystem Spec
Comment

 Firefox - Restore Previous Browsing Session




Tutorial Tools



Similar help and support threads for2: Firefox - Restore Previous Browsing Session
Windows 7 Tutorial Category
Solved IE 10 not remembering previous session Browsers & Mail
IE9 Reopen Last Browsing Session option is not working Browsers & Mail
firefox add-on/extension to save previous session windows/tabs ? Browsers & Mail
Internet explorer last browsing session opens up many session points! Browsers & Mail
Internet Explorer - Reopen Last Browsing Session Tutorials

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:55 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33