IAppIntSession::IsLoggedIn

The IsLoggedIn method provides access to the IStdSessionLogin interface, which returns a Boolean indicating whether the client application is currently logged onto FileNet Workplace.

VARIANT_BOOL bIsLoggedIn = spIAppIntSession->IsLoggedIn();
Parameters
None.
Results
Returns a VARIANT Boolean indicating whether the client application is currently logged onto FileNet Workplace. A value of VARIANT_TRUE indicates that the client application is currently logged on; otherwise VARIANT_FALSE is returned.
Sample
The following is a fragment from the complete example for the IAppIntSession interface.
   ...
   std::cout << "Checking Login Status..." << std::endl;
   VARIANT_BOOL bIsLoggedIn = spIAppIntSession->IsLoggedIn();
   if (bIsLoggedIn == VARIANT_TRUE) {
      std::cout << "User is currently Logged In." << std::endl;
   } else {
std::cout << "User is NOT currently Logged In." << std::endl;
std::cout << "Attempting Login..." << std::endl;
hResult = spIAppIntSession->Login(); if (FAILED(hResult)) { std::cout << "Login failed." << std::endl; _ASSERTE(0); }
std::cout << "Login succeeded." << std::endl; }
...