question

Justine Lumuntad Carretero avatar image
Justine Lumuntad Carretero asked

public void OnClickLogout() { print("Logout Success"); PlayFabClientAPI.ForgetAllCredentials(); } Tried to create logout Button But Nothing Happens

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Hi Justine,

What do you mean nothing happens? Do you mean that nothing happened after the execution of the statement “PlayFabClientAPI.ForgetAllCredentials();”? What PlayFabClientAPI.ForgetAllCredentials does is to clear the Client SessionToken which allows this Client to call API calls requiring login. You can test making API calls after you clicked logout button to see if they require you to login, if they do, it means that PlayFabClientAPI. ForgetAllCredentials has taken effect.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.