By default UnionCloud will log you out after 30 minutes of inactivity. This is mainly for security purposes if you are using a computer in a shared space or a public computer.
However, if you use UnionCloud regularly, you can actually adjust this so that you stay logged in for longer.
Please note: Only change this if you are absolutely confident that your computer will not be used by anyone but yourself to protect data.