Before terminating a session, the application must first clean up the session information. Usually, a logoff process cleans up all the session-related information on the server. Additionally, a session expiration timeout can request a process for cleaning up information related to the expired session.
To terminate a session, the client invokes the closeSession method on CSClient.