I am new to SharePoint so I may be asking a very simple question.
We have a webservice in java which accepts a username and password and using these crendentials it hits SharePoint (using ntlm windows authentication) List Service.
When we enter the wrong credentials for the first time, it gives authentication exception and its fine.
Next we provided the right credentials and it provided the list, its fine again.
After this, I entered the wrong credentials and SharePoint responded with the list rather than exception. This time I felt its not fine.
I think SharePoint stores the credentials somewhere and does not check it again.
I felt this because when I hit the SharePoint site from browser it demanded for credentials after that I deleted all the history of browser, and opened a new browser, it does not ask for credentials.
Please suggest what can I do.
Is there some way to avoid this caching or some sort of logout code it available?