Programs closed after zorin wakes up again

Hi,

When I leave my zorin session open and I come back to the pc after a few hours then the login session shows up again but all programs that where open are closed.
When i check uptime and last reboot, the pc didn´t restarted.

I can´t get this fixed but I gues it should be an easy one (shame...).

Are you running on Wayland or Xorg?
You can check that with

echo $XDG_SESSION_TYPE

You could test if a switch helps. Logout and at login click on your username, then a cog wheal appears at the bottom right corner. There you can switch between Xorg and Wayland.

You could also test if it helps to go manually into suspend by pressing the button in start menu.

Goes the PC in Sleep or Lock Mode? Goes it automatically or do You that manually? Or do You log out?

The pc goes in sleep. Iĺl justy leave it as is for a few hours and when I return it looks like it has rebooted but from what the terminal tells me that´s not the case.
When I put the pc in sleep from myself, everything works.
When it goes in sleep mode from his own and I come back after a few hours I see the login screen, enter password, re-open chrome and then chrome asks me to restore the tabs that where open last time.

While writing this Iwas checking my energiesetting and it should never go into power saving (sleep) mode so the pc must have been rebooted automatically.
I´ve just changed it into power saving mode after 1 hour to see if anything changes.