Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
    
Did you delete all cookies when you deleted browser history in your test? I think the problem could be your web service framework in Java keeping the session alive rather than the SharePoint web service. –  James Love Dec 8 '11 at 9:47
    
I deleted everyhing from the browser cookies password history everything.. –  Mohit Dec 8 '11 at 9:56
    
Which authentication is used by your SharePoint application? –  Amit Kumawat Dec 8 '11 at 13:37
    
@Amit Kumawat Window authentication(NTLM) –  Mohit Dec 8 '11 at 14:25
add comment

1 Answer

up vote 0 down vote accepted

The zone settings in IE might be playing some kind of part. The URL needs to be in 'Intranet' and if you need to force SharePoint to prompt then you could just adjust the zone settings to prompt each time you access the site?

Also Ctrl+F5 on IE will supposedly reload the page completley.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.