We really cannot comment on why the “configuration” was lost in your case.
But it is a good idea to include the file C:Users{user}AppDataRoamingSQLyogconnrestore (I think this is the file you refer to as “configuration”) in a routine backup plan (just in case) if you use ‘session restore’ – and in particular if you don’t backup each tab to separate files.