Skillfully use Session manager to restore Firefox lost session

Source: Internet
Author: User

After today's Firefox crash, my session was all lost. In the past, Firefox will have a session restore page after restarting or after crash. But today is not true. Then I went to Google and tried a lot of ways. Finally found a very fast and convenient restore step.

Let's start with a brief description of the Firefox recording session mechanism, He will be in each user's profile under the corresponding session.js and session.bak, generally only need to use JS can, in each restart Firefox he will go to retrieve these files, and then according to the entries inside the automatic loading. But sometimes, Firefox does not automatically load this file, this time we need to use the manual loading steps.

"1" First check your profile under there is no corresponding session.js, in my Ubuntu under my path directory content for (usually with the session as the name, but also some called recovery.js or previous.js, specifically can go in to open after viewing have their own tab bar Accounts

After you enter this directory, look at the file suffix js or bak, I found a file called Previous.js, which really recorded my hundreds of tab records.

{"Windows":[{"Tabs":[{"Entries":[{"URL":"http://www.cnblogs.com/rickyk/","title":"","ID":226624224,"Docshellid": -,"referrer":"http://64.233.183.163/url?sa=t&rct=j&q=site%3Ablog.rickyk.com%20%20git&source=web&cd=14 &ved=0ccwqfjadoao&url=%68%74%74%70%3a%2f%2f%62%6c%6f%67%2e%6a%6f%62%62%6f%6c%65%2e%63%6f%6d%2f%35%34% 31%38%34%2f&ei=z-1wvonxa4oayqtjtyhabq&usg=afqjcnfa2cxuuzxoy0dt97jsae7pkcvkea&bvm=bv.78677474,d.aww &

Are all recorded in JSON format, where the Windows tag means you have several windows, tab tags to record your specific tab page, this can be easily seen.

"2" Installation Attachment--session Manager (Session manager)

After adding this attachment, you can find the option for this attachment in the "tools", when we find that the "recovery session" is empty and cannot be ordered. So, I did a test, I directly point to save the session, to see where this plug-in will write the file, and in what format to record. And finally found out he wrote it in

ls backup.session

There is a session file, in fact, the same JSON format, after we open, the content is as follows:

[SessionManager v2]name=[last browsed session]timestamp=1417656557816AutoSave=falseCount=1/1 group= Backup session screensize=1360x768
{"Windows":[{"Tabs":[{"Entries":[{"Url":"http://www.cnblogs.com/rickyk/","title", "id226624224,< Span style= "color: #800000;" > "docshellid48,< Span style= "color: #800000;" > "referrer": http://64.233.183.163/url?sa=t&rct=j&q=site%3ablog.rickyk.com%20%20git&source=web&cd=14& ved=0ccwqfjadoao&url=%68%74%74%70%3a%2f%2f%62%6c%6f%67%2e%6a%6f%62%62%6f%6c%65%2e%63%6f%6d%2f%35%34%31%38% 34%2f&ei=z-1wvonxa4oayqtjtyhabq&usg=afqjcnfa2cxuuzxoy0dt97jsae7pkcvkea&bvm=bv.78677474,d.aww

Compared to our previous content in the JS file in Backup, we found a lot of

[SessionManager v2]name=[last browsed session]timestamp=1417656557816AutoSave=false   count=1/1     group= backup session  screensize=1360x768

I later thought that if the format is the same as JSON should be able to restore my previous session, and then I copied the previous previou.js file into this directory, with Vim opened at the top of the file as he joined the above sentence. and change the suffix to. session, try to see if such a format can make the plugin read correctly.

This time I am opening the tool-session Manager-resume session, amazing discovery, incredibly there are two recovery entries, the first one is the previous test, the second is we have just made changes to the session after the success of the content. Then we delete the session file as the test, leaving the actual items to be recovered. The miracle came, and our conversation was all back.

This set of methods some attention needs attention, first of all, the general Firefox crash will be in your personal directory will have the session-related JS and Bak files to save, even if you did not correctly restore the last session, these files are still there. You must make sure that the file exists before you can proceed to the next step.

In short, this approach does allow you to recover your previously lost session, I successfully restored more than 700 tab, I hope this summary can be helpful to you:)

Skillfully use Session manager to restore Firefox lost session

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.