Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

how to recover previous sessions

more options

Despite that I have chosen to restore the previous session on startup, sometimes I find Firefox to startup after being closed regularly before with all the tabs of the previous session gone an w/o the "well, this is embarrassing..." window. In that case I always have to open the history and try to remember and find the respective tabs and open them one by one.

I saw that there is a 'sessionstore.js' and a 'sessionstor.bak' in the folder 'C:\Documents and Settings\USER\Application Data\Mozilla\Firefox\Profiles' which I believe contain the actual (*.js) and previous (*.bak) sessions but how can I manually restore i.e. the *.bak after I experienced firefox to come back w/o the previous session tabs?

Furthermore, I'd like to create a session profile with some specific tabs and store it somewhere. How to do such a thing and how to open such a session profile.

Despite that I have chosen to restore the previous session on startup, sometimes I find Firefox to startup after being closed regularly before with all the tabs of the previous session gone an w/o the "well, this is embarrassing..." window. In that case I always have to open the history and try to remember and find the respective tabs and open them one by one. I saw that there is a 'sessionstore.js' and a 'sessionstor.bak' in the folder 'C:\Documents and Settings\USER\Application Data\Mozilla\Firefox\Profiles' which I believe contain the actual (*.js) and previous (*.bak) sessions but how can I manually restore i.e. the *.bak after I experienced firefox to come back w/o the previous session tabs? Furthermore, I'd like to create a session profile with some specific tabs and store it somewhere. How to do such a thing and how to open such a session profile.

所有回覆 (6)

more options

For the first part of your question, you should not have to go in and restore individual tabs after restoring previous history. Instead after restoring previous history, you can open previous windows by their active tab which is a bit difficult, OR you can restore all of the windows at the bottom of where you have the choice to open individual windows.

Perhaps part of the problem is that apparently Mozilla has information that most people use the home page supplied by Firefox. I don't know anyone who does that myself. But it might help to restore some of the old behavior so when when Firefox ends you are asked what you want to do regardless of what you reply, you can still get the previous session from the History menu. see item #31 (#tabslost)

You can make Firefox Firefox 5.0 look like Firefox 3.6.18, see numbered items 1-10 in the following topic Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 5.0, or 4.0.1, look like 3.6). Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.

由 David McRitchie 於 修改

more options

actually, I didn't understand a word of what you said.

question is: is there a file where Firefox stores the actual session at the moment it crashes or when I close Firefox? if yes, what is the name of such file and where can I find it? and if there is such a file and I know its name and location, what do I have to do to restore the sessions therein?

more options

You can use "History > Restore Previous Session" to get the previous session at any time.
You may need to click the orange/gray Firefox button to see History.
There is also a "Restore Previous Session" button on the default about:home Home page.

If that choice is not available (grayed) and you also can't reopen closed windows then that session is lost.

more options

still not the answer to my question.

question is: Where does Firefox store the tabs that were open in the current session upon exit?

by the way, how can I open the about:blank page? Seems that this page opens randomly but not upon typing about:blank in the address bar

more options

Firefox 4 copies the current file sessionstore.js (if present) to sessionstore.bak at the start of the session to make it possible to reopen that last session at any time.

You can only restore the last session.
To reopen more sessions you need a session restore extension.

more options

thank you very much, this is what I was looking for...