Added setting to autosave sessions periodically