T
Tumurbaatar S.
My app uses Windows auth and it seems it does not
have any method to sign out a user. Is there any way
to do it?
have any method to sign out a user. Is there any way
to do it?
Dominick Baier said:Hello Tumurbaatar S.,
When using HTTP based authentication (e.g. Basic, NTLM, Digest, Kerberos),
Internet Explorer (IE) will continue sending the same credentials for each
subsequent request to the server until one of two things happens: either
(a) the user closes their browser or (b) the server refuses the
credentials with a 401 status code.
Beginning with IE6 SP1 the following piece of javascript code will clear
IE's credentials cache. Note, that this will clear the credentials cache
for the entire iexplore.exe process, so users will be forced to
re-authenticate to any site being accessed by that process (in case they
have multiple windows open pointing to multiple websites):
// Clear current credentials
// Requires IE6 SP1 or later
document.execCommand(ClearAuthenticationCache, false)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.