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: "192.168.0.2", server:"192.168.0.8", 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=192.168.0.2;server=192.168.0.8;user=user", Rdp2 will create a object automatically for connection.