X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

how to restore the precedent session from a sessionstore.bak file

Posted

When I tried to open firefox it automatically updated and supressed the sessionstore.js file. I saved the sessionstore.bak into another folder, closed mozilla, changed the extension bak to js in the "profiles" folder of firefox and opened it again but nothing happened. Though the sessionstore.bak file is 13Ko big and seems to contain all the links of my previous session.

How could I force Firefox to start a session using the information in the sessionstore.bak or .js file as it should?

Chosen solution

Hello lordsilver2, the method you tried is the correct, if doesn't work maybe the sessionstore.bak (renamed to sessionstore.js) is corrupted.

First make a copy of the file (the renamed sessionstore.js) to your desktop and then try to create a new profile and move the copy in the new profile to see if that works. If the file is corrupted it is not sure that the above works.


thank you

Read this answer in context 4

Additional System Details

Installed Plug-ins

  • Next Generation Java Plug-in 10.10.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • VLC media player Web Plugin 2.0.2
  • Shockwave Flash 11.5 r502
  • Skype Web Plugin
  • Google Update
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.4
  • 4.1.10329.0
  • NPWLPG
  • RealJukebox Netscape Plugin
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • 15.0.0.198
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • np-mswmp
  • PDF-XChange Viewer Netscape Gecko Plugin

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

{
"application": {
"name": "Firefox",
"version": "18.0.1",
"userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0",
"supportURL": "http://support.mozilla.org/1/firefox/18.0.1/WINNT/fr/"
},
"modifiedPreferences": {
"accessibility.typeaheadfind.flashBar": 0,
"browser.cache.disk.capacity": 358400,
"browser.cache.disk.smart_size.first_run": false,
"browser.cache.disk.smart_size.use_old_max": false,
"browser.cache.disk.smart_size_cached_value": 358400,
"browser.places.smartBookmarksVersion": 4,
"browser.sessionstore.restore_hidden_tabs": true,
"browser.sessionstore.max_tabs_undo": 200,
"browser.startup.homepage": "about:sessionrestore",
"browser.startup.homepage_override.buildID": "20130116073211",
"browser.startup.homepage_override.mstone": "18.0.1",
"dom.mozApps.used": true,
"extensions.lastAppVersion": "18.0.1",
"gfx.blacklist.suggested-driver-version": "10.6",
"gfx.direct3d.prefer_10_1": false,
"keyword.URL": "http://www.basicscan.com/?tmp=nemo_results_removelink&prt=BscscnPB&keywords=",
"network.cookie.prefsMigrated": true,
"places.history.expiration.transient_optimal_database_size": 160992460,
"places.history.expiration.transient_current_max_pages": 100621,
"places.database.lastMaintenance": 1358015555,
"privacy.donottrackheader.enabled": true,
"privacy.sanitize.migrateFx3Prefs": true,
"security.warn_viewing_mixed": false
},
"graphics": {
"numTotalWindows": 1,
"numAcceleratedWindows": 1,
"windowLayerManagerType": "Direct3D 9",
"adapterDescription": "ATI Mobility Radeon HD 4200 ",
"adapterVendorID": "0x1002",
"adapterDeviceID": "0x9712",
"adapterRAM": "256",
"adapterDrivers": "atiumd64 atidxx64 atiumdag atidxx32 atiumdva atiumd6a atitmm64",
"driverVersion": "8.634.0.0",
"driverDate": "7-29-2009",
"adapterDescription2": "",
"adapterVendorID2": "",
"adapterDeviceID2": "",
"adapterRAM2": "",
"adapterDrivers2": "",
"driverVersion2": "",
"driverDate2": "",
"isGPU2Active": false,
"direct2DEnabled": false,
"directWriteEnabled": false,
"directWriteVersion": "6.1.7600.16972",
"direct2DEnabledMessage": [
"tryNewerDriver",
"10.6"
],
"webglRenderer": "Google Inc. -- ANGLE (ATI Mobility Radeon HD 4200 )",
"info": {
"AzureCanvasBackend": "cairo",
"AzureFallbackCanvasBackend": "none",
"AzureContentBackend": "none"
}
},
"javaScript": {
"incrementalGCEnabled": true
},
"accessibility": {
"isActive": false,
"forceDisabled": 0
},
"libraryVersions": {
"NSPR": {
"minVersion": "4.9.4",
"version": "4.9.4"
},
"NSS": {
"minVersion": "3.14.1.0 Basic ECC",
"version": "3.14.1.0 Basic ECC"
},
"NSSUTIL": {
"minVersion": "3.14.1.0",
"version": "3.14.1.0"
},
"NSSSSL": {
"minVersion": "3.14.1.0 Basic ECC",
"version": "3.14.1.0 Basic ECC"
},
"NSSSMIME": {
"minVersion": "3.14.1.0 Basic ECC",
"version": "3.14.1.0 Basic ECC"
}
},
"extensions": [
{
"name": "Adblock Plus",
"version": "2.2.1",
"isActive": true,
"id": "{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}"
},
{
"name": "DownloadHelper",
"version": "4.9.13",
"isActive": true,
"id": "{b9db16a4-6edc-47ec-a1f4-b86292ed211d}"
},
{
"name": "Gestionnaire de session",
"version": "0.7.9.4",
"isActive": true,
"id": "{1280606b-2510-4fe0-97ef-9b5a22eafe30}"
},
{
"name": "Block Site",
"version": "1.0.3",
"isActive": false,
"id": "{dd3d7613-0246-469d-bc65-2a3cc1668adc}"
},
{
"name": "EPUBReader",
"version": "1.4.2.1",
"isActive": false,
"id": "{5384767E-00D9-40E9-B72F-9CC39D655D6F}"
},
{
"name": "HP Smart Web Printing",
"version": "4.60",
"isActive": false,
"id": "smartwebprinting@hp.com"
},
{
"name": "RealPlayer Browser Record Plugin",
"version": "15.0.0",
"isActive": false,
"id": "{ABDE892B-13A8-4d1b-88E6-365A6E755758}"
},
{
"name": "Skype Click to Call",
"version": "6.3.0.11079",
"isActive": false,
"id": "{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}"
},
{
"name": "Updated Ad Blocker for Firefox 11+",
"version": "0.7.7",
"isActive": false,
"id": "{4DC70064-89E2-4a55-8FC6-E8CDEAE3618C}"
},
{
"name": "Web Developer",
"version": "1.2.2",
"isActive": false,
"id": "{c45c406e-ab73-11d8-be73-000a95be3b12}"
}
]
}

ideato
  • Top 25 Contributor
617 solutions 4263 answers

Chosen Solution

Hello lordsilver2, the method you tried is the correct, if doesn't work maybe the sessionstore.bak (renamed to sessionstore.js) is corrupted.

First make a copy of the file (the renamed sessionstore.js) to your desktop and then try to create a new profile and move the copy in the new profile to see if that works. If the file is corrupted it is not sure that the above works.


thank you

cor-el
  • Top 10 Contributor
  • Moderator
10756 solutions 96800 answers

Did you check for recently closed tabs and windows with that restored sessionstore.js file?

See also this MozillaZine forum thread.

spidgorny 0 solutions 5 answers

Helpful Reply

My way:

  1. Open a sessionstore.js file in a browser. It can be a different browser (Chrome) if you like.
  2. Open Firebug/Inspector.
  3. Type: eval("ss = "+document.body.innerText);
  4. Type: for (var i = 0; i < ss.windows[0].tabs.length; i++) { var ent = ss.windows[0].tabs[i].entries; var last = ent[ent.length-1]; document.write("<a href="+last.url+">"+last.url+"</a>
    "; }

Enjoy all tabs from sessionstore on your screen. You only need to Ctrl-click them one by one.

tealady 0 solutions 3 answers

Hi spidgorny

I'm having the same problem as OP but the other suggestions haven't worked for me. I'd like to try yours but am utterly clueless when it comes to inspector.

Where exactly do I type the text that you suggest? In one of the two white boxes at the bottom of the screen (screen shot attached)? Neither of the white boxes has a cursor, or anything else that makes it patently obvious that text may be entered there. Waaaaaaaaaaay out of my depth here!

spidgorny 0 solutions 5 answers

@tealady: you're almost there. I've used the Web-Inspector in Chrome, but Firefox Inspector should work as well. Just click on the first tab "Web Console" - there you can type the code. Let me know if it's not working.

tealady 0 solutions 3 answers

@spidgorny, thank you so much for replying.  :-) Not having much luck with that. After typing

eval("ss = "+document.body.innerText);

it returns the message

undefined.

After I enter

for (var i = 0; i < ss.windows[0].tabs.length; i++) { var ent = ss.windows[0].tabs[i].entries; var last = ent[ent.length-1]; document.write("<a href="+last.url+">"+last.url+"</a> "; }'

I get the message

SyntaxError: unterminated string literal.

Am I doing something daft?  :-)

spidgorny 0 solutions 5 answers

OK, for Firefox the lines are:

eval("ss = "+document.body.innerHTML.replace("<pre>", "").replace("</pre>", ""));

and

for (var i = 0; i < ss.windows[0].tabs.length; i++) { var ent = ss.windows[0].tabs[i].entries; var last = ent[ent.length-1]; document.write("<a href="+last.url+">"+last.url+"</a><br />"); }

Modified by cor-el

spidgorny 0 solutions 5 answers
  • There's a <pre> and </pre> inside the replace() function, which are being corrupt by the commenting system here.
tealady 0 solutions 3 answers

Okay, the first line of code seems to have worked, but when I enter the second one it returns the messages

for (var i = 0; i < ss.windows[0].tabs.length; i++) { var ent = ss.windows[0].tabs[i].entries; var last = ent[ent.length-1]; document.write("<a href="+last.url+">"+last.url+"</a>
"); }

and

TypeError: ss.windows[0] is undefined

Having computer problems and might not be back on tonight but will check in the morning. Thank you again for your continued help!