SampleApp.Form1.initClientSession Function
This method creates a new Client Session object (if needed) using information determined in the Form1 constructor and then calls the appropriate login method.

Private bool initClientSession (bool)
  Type Name Description  
    bool isHostLogin If true, specifies that the hostLogin method should be called.  
  Return Description  
    bool true if the login was successfull