How to resolve weird auto-logout issue? Synopsis

Since upgrading to Yosemite, when my MacBook automatically turns it's screen off to conserve energy it also logs out which bugs me because all of my processes are killed off; this never occurred on Mavericks.

Also, since upgrading to Yosemite why is there now two log-in screens?


When the machine is booted there is one login screen;
When the machine is powered on from sleep mode you instantly need to login, then once the mac has booted and all devices are loaded (after ages) you need to login a second time;
Isn't it the advanced log out feature found under Advanced in Security &amp; Privacy?

I've disabled "Log out after # minutes of activity" on El Capitan (see screenshot) to keep my desktop session open regardless of time.

I did check the "Require an administrator password" to prevent normal users to change a locked system.



You might also want to check your Energy Saver settings; particularly under the Schedule... button that could cause your system going to sleep.