Creating applications : Creating applications : Rich Client HelloWorld sample : Overview of Rich Client HelloWorld sample : Terminating a session
  
Terminating a session
Before terminating a session, the application must first clean up the session information. Usually, a logoff operation is sent to the server and cleans up all the session-related information on the server. Additionally, a session expiration timeout can be configured to dispatch a process for cleaning up information related to the expired session.
To terminate a session, the client code invokes the closeSession() method on CSClient.
See also
Overview of Rich Client HelloWorld sample