Start a new topic
Answered

Logoff sessions

In the app you have connect / disconnect but no logoff? Is this intentional? Mike

Best Answer

Like Patrik mentioned, the remote desktop protocol itself does not support logging off a session. The way MobaXTerm, RDCM, etc. are doing it, is to "reset" the session using the WTS API. There are a couple of issues with this approach:

* it's error prone because in many situations you can use RDP (port 3389) but can't use the WTS API because all high ports (RPC) are basically needed

* it's dangerous because resetting the session is not exactly a log off. It's basically killing the session and unsaved data is lost

* it's fragile because there is not much to identify the correct session. In the WTS API you need to specify the session id you want to kill. Identifying the session by the username/client alone can sometimes lead to the wrong session


You can still use the dashboard tab to reset sessions though.


Hi Mike!


I assume you're referring to the RDP connection type, right? In this case unfortunately logoff is not possible, as - from our current knowledge - there is no official "logoff" support within the RDP protocol available. Sorry!


Regards,

Patrik

Patrik,


How does MobaXterm do it?  They have a menu selection that will logoff and close all open RDP Sessions.

This is surprising to me too.  I have this option in Microsoft's Remote Desktop Connection Manager.

Answer

Like Patrik mentioned, the remote desktop protocol itself does not support logging off a session. The way MobaXTerm, RDCM, etc. are doing it, is to "reset" the session using the WTS API. There are a couple of issues with this approach:

* it's error prone because in many situations you can use RDP (port 3389) but can't use the WTS API because all high ports (RPC) are basically needed

* it's dangerous because resetting the session is not exactly a log off. It's basically killing the session and unsaved data is lost

* it's fragile because there is not much to identify the correct session. In the WTS API you need to specify the session id you want to kill. Identifying the session by the username/client alone can sometimes lead to the wrong session


You can still use the dashboard tab to reset sessions though.

Login or Signup to post a comment