BTW I have exactly the same problem as stated up above, but I get logged out from everything after a while
no matter what; I don't have to shut down or even shut the lid.
I have seen that on my PC, but rarely (lost logins, no reboot). Some thoughts: Most browsers have options to delete cookies on closing the browser. This is generally includes but is not limited to "private browsing." If you can rule out browser options,
then you might look at your security software to see if it is set to do anything relevant to this problem. I don't think that is very likely, however. If this is happening a lot, it might be due to a problem in updating software likely from Google or Microsoft,
where for some reason the updating fails to complete, so it tries to do it over and over. This is if the updating deletes all cookies, as Google Chrome Elevation Service seems to do. If you have corrupted updating software, there may be relevant messages in
the Windows log files, accessible through the Event Viewer (note: this takes you to a very geeky place, I don't understand most of what I see in it).
At the moment, things on my PC seem to be stable, even using sleep mode. I may try deleting Chrome, then reboot and do a fresh install, depending on how things go. If you are using Chrome, you might try this.
To get a truer handle on login deletions, note that some sites (financial, especially) will automatically log you off after a relatively short period of inactivity. I used YouTube and Yahoo Finance in my testing because they don't seem to do that. If my
logins for them are unexpectedly deleted, I know something unusual is happening.
There may be multiple possibilities for what is causing the problem on your machine. If you're not deep into how Windows works (diving into the registry, group policy editor, etc.), you might try using Firefox as your primary browser until someone can sort
all this out. If you are already using Firefox and have the problem, that would be interesting to know. Firefox at least lets you know when it is being updated.