I have a MacBook Pro and I use the Microsoft Remote Desktop app to connect to some servers running Windows Server 2019.
Every time I leave my desk, I lock the computer. But when I return and unlock it, the RemoteDesktop session reconnects, but all programs I was using inside the session are closed, just as if I had logged out of the RDP session.
I don't care if the session closes, but I don't want all programs closing in the process.
This happens with only one particular Windows Server 2019 connection.