There are some cases that my Sharepoint 2013 farm application must force the user to logout.
In order to logout the user, the app redirects the user to closeconnection page:
~/_layouts/15/closeConnection.aspx?loginasanotheruser=true
This really log the user out, but also calls several login prompts.
Sometimes it prompts 11 times or 12 times the same login prompt.
The application authenticate via AD so I have no idea why is this happening, since I don't have control over the prompt.