- Go to
about:config
- Type browser.sessionstore.interval in the Filter
- Change the value from its default of 10000 to something smaller
- Restart Firefox (may not need to, doesn't hurt if you do)
But if you want to create copies of the file instead marked by the timestamp, you can run a Scheduled Task and execute some batch file (if you're using Windows) like the following:
@echo off
set sessionFilePrefix=c:\path-to-session-location\sessionstore
set sessionFileSuffix=.js
set stampH=%time:~0,2%
if %stampH% lss 10 (set stampH=0%time:~1,1%)
set stampM=%time:~3,2%
set stampS=%time:~6,2%
set stampU=%time:~9,2%
set sessionVer=%stampH%%stampM%%stampS%%stampU%
:Start
IF NOT EXIST "%sessionFilePrefix%%sessionFileSuffix%" (GOTO :End)
IF NOT EXIST "%sessionFilePrefix%-%sessionVer%%sessionFileSuffix%" (
copy "%sessionFilePrefix%%sessionFileSuffix%" "%sessionFilePrefix%-%sessionVer%%sessionFileSuffix%"
):End
Now, whenever the scheduled task runs that batch file operation you'll create backup copies of the sessionstore.js file. You'll end up with files that look like this:
- sessionstore-10302087.js
- sessionstore-10334925.js, etc.
Remember to purge these files every now and then.