Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

Navigation: Developer's Guide > QPR Web Services Foundation > Functions

LogOff

Scroll Prev Top Next More

Revision history:

Introduced in QPR 8.0

 

Logs out an authenticated session, the ID of which is provided as a parameter for the function call.

 

Synopsis:

 

void LogOff(string sessionId)

 

Return Value:

 

None.

 

Parameters:

 

sessionId: String. ID of a previously authenticated session. This can alternatively be provided as a value of the request header parameter "sessionid".

 

Example Procedure:

 

ServiceClient client = new ServiceClient("WSHttpBinding_IService");

string sessionId = client.Authenticate("qpr", "demo");

string xmlElement = client.QueryObjectsAsXml(sessionId, "[SC.1].SubObjects", "", "", "", "");

client.LogOff(sessionId);

client.Close();