Sumatra does not remember opened pdfs



recently I updated my laptop from Win7 to Win10. One of the first things to do was of course installing a good and reliable pdf-viewer. But since the new installation the opened pdf-files are not remembered when I hit the close button, before it worked just fine with the close button. With ctrl + Q it partly works, but only for locally saved pdf’s. Before it was also possible with pdf’s in the temp folder or with opened pdf’s from my email programe. I wonder what is different now and if anyone faces the same problem. I still have the relevant options with the same logical operators as before.

RestoreSession = true
RememberStatePerDocument = true
RememberOpenedFiles = true

Some FileStates have the option IsMissing = true. The majority of these are in the temp folder, but in turn there are files that are also in the temp folder with the false operator.

The SessionData section is empty.

I already have read related threads, but unfortunatly the solution approaches did not help.

I would be glad if someone has a solution for this. Thank you in advance!



It depends how you may have backed up any files from before system upgrade.
Your settings and analysis are correct.

It is not a good idea to hold referenced files such as those from e-mails in a temp location since that can be wiped on update/upgrade . Thus I suspect if those “temp” files are gone there is little chance of replacement in history without fresh download / save attachments etc.

If the entry in the settings file shows “Is missing = true” then it can open the file with last page number etc IF the file returns to that same location (e.g re-saved from an e-mail)

If the file is in a different back-up folder then the entry “path” would need to be edited in the settings file since opening a file with the same name but different folder will NOT normally use the same history.

Session data is primarily for keeping “tabs”, So tabs need to be on, to see entries in that section
It is dynamic thus if only one file was active at closure there will be NO entries at restart. this an issue for some users since Windows 10 home will close down without saving settings.txt thus tab and file history will be non existent on restart.

Whilst it is possible to build/rebuild incorrect entries in the settings file (via scipting would be easiest) it is not likely to be worth the time manually. The simplest way to reset is to get a collection of pdfs etc in a “library folder” of their own and dragNdrop the folder onto sumatraPDF shortcut so it opens all those files.

When you have a settings file you wish to preserve it is a good idea to make a back-up so it can be used should windows shut-down to update without asking to save settings


Thank you for the answer. Indeed after an upgrade/update the files can be wiped out. That is not the real problem. I saved them before.

The problem is when I open files from my email program or/and from the web and I close sumatraPDF afterwards, they are only partly recovered. E.g. I open two pdf-files from the web and one file from an email I received, then all the pdf’s are compiled in one session (I do not save them seperately). Now, when I close sumatraPDF and subsequently open the programm again, then hey are recovered without seperately saving them on a local folder. But when I close the program and I try to open a newly received pdf-file, then the former file I initially opened from the e-mail is not recoverd. So, the new file is not added to the “whole” session from before. It is odd, because I think I can remember that with Win7 this was no problem. There just all the pdf’s were added to one session, and also opened again. Nevertheless, I think the best option is as you said with the library folder.

Thank you for your help!


It sounds like in the past you were used to finding historic entries in temporary email/browser folders which would have been possible if you had NOT set delete on closure for such applications. Windows 10 default settings may be such that “temporary/cached” files are cleared on closure, the preference for many apps, but outside of SumatraPDF’s control…

This type of difference would affect your experience as you describe


Yes, I think that is the issue. But actually my behaviour by not saving the documents was negligent anyway, because as you said, after an update or restart the temp folders are probably cleared up. I think in the future I just set up a “temporary” folder in the favourites and save any seemingly interesting pdf there as an intermediate step. Before I was just lazy to do so. :slight_smile:

Thank you again for your description!


1 Like