Communication between Server and Client problem


I have a problem in the communication between the client and the server.
I developed an application which has a login view and logout button in home.

After many times of “logging in” and “loggin out” the client still waiting and the loading icon is shown.

I can’t really understand what is your problem from this description.
Could you elaborate and if it is not too long share some code to illustrate the problem ?

Also, including your server log output would be a help.