We need to clear the authentication cache in IE with Javascript. On IE6 we use: document.execCommand('ClearAuthenticationCache');
and it works. On IE7 it doesnt work.
what can i do? thanks...
We need to clear the authentication cache in IE with Javascript. On IE6 we use: document.execCommand('ClearAuthenticationCache');
and it works. On IE7 it doesnt work.
what can i do? thanks...
Share Improve this question edited Jul 30, 2009 at 16:07 Grant Wagner 26k7 gold badges56 silver badges65 bronze badges asked Jul 30, 2009 at 7:48 MarcoMarco 01 Answer
Reset to default 6Are you seeing any JavaScript errors (a yellow exclamation mark icon in the lower left corner)? Can you provide more details? Are you absolutely certain that line of code is executing (try adding alert('execCommand');
above and below it). It is possible some other JavaScript error caused by something that works in Internet Explorer 6 but does not work in Internet Explorer 7 is preventing that line of code from executing.
According to the IDM_CLEARAUTHENTICATIONCACHE Command documentation it works in Internet Explorer 6 SP1 and above.
I just tried document.execCommand('ClearAuthenticationCache')
in Internet Explorer 7 and 8 and it worked in both. I didn't even have it in my page source.
- I went to a page requiring authentication.
- I logged in.
- I navigated away from that page, then back again, I did not have to re-authenticate.
- I then pasted
javascript:void(document.execCommand('ClearAuthenticationCache'));
into the address bar. - I navigated away from the page and back again and I had to re-authenticate.
Can you verify that the above steps are not working for you?
Do you have a page where this problem is occurring that we could use for testing?
Please edit your question with any other information you can provide. Thanks.