Restore lost Session Manager content?

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

VLMin
Astronaut
Astronaut
Posts: 535
Joined: 2015-10-20, 17:20
Location: Earth

Restore lost Session Manager content?

Unread post by VLMin » 2018-06-15, 00:13

Greetings!

I am running PM 27.9.2 32-bit on Win 7 x64. I have Session Manager 0.8.1.13 (the recommended version) installed. While attempting to add content to an existing, custom-named session folder, I accidentally overwrote already existing content. I have backups (via FEBE 10.x), therefore I have the following files that seem pertinent:

session.rdf
sessionCheckpoints.json
sessionmanager.dat
sessionstore.bak
sessionstore.js

I believe that one (or more) these files may contain the content I seek, but I don't know where or how (excepting the .dat file) to look. If someone could point me in the right direction, I'd be most grateful.

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1277
Joined: 2017-06-06, 07:38

Re: Restore lost Session Manager content?

Unread post by adesh » 2018-06-16, 12:36

Depending on your situation data may be in sessionstore.js and sessionstore.bak both.
These files store data is JSON format. So, you may use something like http://jsonviewer.stack.hu/ service to easily view how the session data is structured inside the file. If you are worried about privacy use a text editor which can pretty format JSON.

Now, if you find the you tabs in there, what you need to do copy the tab entries to entries inside tabs inside windows array. After that, save the file as sessionstore.js (browser fully closed), load the browser and it should open with the tabs you copied over.

You need to have some knowledge of JSON if you want to pull this off.
https://en.wikipedia.org/wiki/JSON#Example
Last edited by adesh on 2018-06-16, 12:39, edited 1 time in total.

Locked