The Logout method invokes the logout action as dictated by the StdSessionLogin component behavior. The client application may invoke the Logout method through the IAppIntSession interface, however, this method is generally used by commands to automatically perform logout operations as needed during command execution.
void spIAppIntSession->Logout();
... std::cout << "User is currently Logged In." << std::endl; spIAppIntSession->Logout();
...