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 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

When is session information saved?

  • 3 답장
  • 0 이 문제를 만남
  • 8 보기
  • 최종 답변자: cor-el

more options

When my system crashes, the session that is restored is from some time back. I was wondering when Firefox stores its session information and is there any way to force an update? How can I insure that the new session is saved?

When my system crashes, the session that is restored is from some time back. I was wondering when Firefox stores its session information and is there any way to force an update? How can I insure that the new session is saved?

모든 댓글 (3)

more options

Firefox stores session data in sessionstore.jsonlz4 in the Firefox profile folder. This file is only present when Firefox is closed. During the session (i.e. when Firefox is running) the sessionstore-backups folder is used. If Firefox restores an older session then there might be a problem with the sessionstore.jsonlz4 file or you might be switching to another profile. In case of a crash when sessionstore.jsonlz4 is missing might Firefox fallback to a file in the sessionstore-backups folder.


You can use the button on the "Help -> More Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page (Root directory).

You will normally find these files in the sessionstore-backups folder:

  • previous.jsonlz4 (cleanBackup: copy of sessionstore.jsonlz4 from previous session that was loaded successfully)
  • recovery.jsonlz4 (latest version of sessionstore.jsonlz4 written during runtime)
  • recovery.baklz4 (previous version of sessionstore.jsonlz4 written during runtime)
  • upgrade.jsonlz4-<build_id> (backup created during an upgrade of Firefox)

You can copy a file from the sessionstore-backups folder to the main profile and rename the file to sessionstore.jsonlz4 to replace the current file with Firefox closed.

  • make sure to backup the current sessionstore.jsonlz4
more options

Thank you for your response. Pardon me for pressing further...but, I am trying to understand (I have some other non-firefox issue that I am working on that is causing frequent crashes and I really would like to make sure a more current history is represented). I appreciate the help as I want to understand the process. Searches turn up how to "restore" a session, but not a lot on the process on "when" and "how often" session information is saved, which, since I am always restoring to "long ago" is of more interest to me.

I checked the profile folder as you indicated and see a recovery.jsonlz4 (and recovery.baklz4) with a timestamp of just a few minutes ago -- which is in fact more recent than even when I first checked as a result of you response (and Firefox had not been closed between these timestamps). So in my, admittedly, minimal understanding, Firefox is creating a restore point fairly frequently. Do you know how often Firefox does this? Is it the close that causes this information to be transferred to sessionstore.jsonlz4? At the moment, I have only a sessionstore.jsonlz4.tmp from a few days ago.

I understand your point about a problem with file corruption leading to restoration of an older session, which would likely correspond with the timestamp on previous.jsonlz4. Any thoughts on why, when Firefox seems to be making a new recovery.jsonlz4 file every 5 minutes or so, that they would constantly be corrupt and needing restoring from the previous.jsonlz4 file.

Again, thank you for your time and assistance.

more options

You should never see temp files like sessionstore.jsonlz4.tmp or otherwise numbered sessionstore.jsonlz4 files then this can be a problem with security software that keeps an handle on this temp file and prevent Firefox from moving it to sessionstore.jsonlz4. Firefox updates recovery.jsonlz4 and recovery.baklz4 when necessary (i.e. session data like open tabs has been changed).