Login Status

Hello team,

I have a client application that should try automatic re-logins whenever it is logged out by the server. Is there a method to be notified when the client is logged-out for any reason? I am not sure it’s relevant but I am using component integration

Thanks

For MultiUserEnvironment I am using this:

public bool IsLoggedIn(Uri server)

{

  return \_context.Configuration.ServerFQID != null &&

    MultiUserEnvironment.IsLoggedIn(\_context, server);

}

Where _context is the UserContext for the user. You can also use it for Environment (ie, single-user environment), it has the IsLoggedIn() method as well.

Both clauses of my return statement are probably overkill but it works!

You can, of course, put this in a loop on a background thread to monitor for logged-in status.