how to disable user logoff from remote desktop

Solution 1:

This should work...

There are two group policy settings you can make... Or you can use the local policy editor.

They are listed in this link:

http://www.hackersorigin.com/disable-a-user-from-logging-off-windows/?mobile=1

User Configuration->Administrative Templates->System->Ctrl+Alt+Del Options.
On the right, Enable this setting “Remove Logoff“.

and...

User Configuration->Administrative Templates->Start Menu and Taskbar.
On the right, Enable this setting “Remove Logoff on the Start Menu“.