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