This is very similar to saving files, but instead for sessions.
</p><p>When the option to remember the last session is set in the Preferences dialog, Notepad++ automatically saves the current session on shutdown, except if it was launched with the -nosession command line option.</body></html>