More succinctly, enable session saving with:
dconf write /org/gnome/gnome-session/auto-save-session true
More succinctly, enable session saving with:
dconf write /org/gnome/ gnome-session/ auto-save- session true