Skip to main content

6.2.3 – Passing parameter via object or cookie

Rdp2 class can be used to replace Rdp class. You can pass a object to Rdp2:

varobj = {gateway: "", server:"", user: "user"};
var r = new svGlobal.Rdp2(obj);

Rdp2 class will create an object from cookies if obj is undefined. If value of the document.cookie is "gateway=;server=;user=user", Rdp2 will create a object automatically for connection.