How to restore a Gnome 3 session? Which means: opening all the programs running last time when I log out in Gnome 3.
If your purpose is to automatically start programs after logging in Gnome, another possible method is using the autostart script: https://www.systutorials.com/qa/119/how-to-write-a-autostart-script-for-gnome
In the “Options” tab, select “Automatically remember running applications when logging out”.
The “a thousand words”: