How do I logout?

Hi everyone.

I tested it as follows.

1. I have tested it with a “MultiSiteViewer” project.

2. One milestone server exists and creates two basic accounts.(testuser01, testuser02)

3. Set different camera permissions for each account.

  1. LogIn as testuser01.(Use “Add Site” Button)

  2. Check camera list.(Use “Select Camera…” Button)

6. Logout. Delete the site.(Use “Remove Site” Button)

  1. LogIn as testuser02.(Use “Add Site” Button)

  2. Check camera list.(Use “Select Camera…” Button)

I do not see a list of cameras in current account(testuser02).

The list of cameras from the old account is retained.

After debugging in detail, I guess the following.

This is because the authentication cache is not deleted.(CredentialCache Class)

How do I delete or initialize authentication cache?

Thank you.

Is the MIP SDK 2017R1?

I reproduced the issue now. I will investigate deeper.

You are right in your analysis. The CredentialCache was not cleared. This will be fixed in a future version of the MIP SDK. You cannot force a clearance of the CredentialCache in your code.

When you are using two users it might be relevant for you to use user contexts. You can explore this in the Multi-User Environment sample. If using this it is important to use the UserContext every time you use configuration.

I have a hunch that what you really need is the multi user / user context capabiltities..

Thank you very much. Bo.

I’ll try it in the way you told me.

But I hope that the SDK fixes will be applied quickly too.

Have a nice day.