Kevin M
Kevin M

Reputation: 5496

How to clear IIS Windows Authentication cache in C#

I am using Windows Authentication in my Web Application its working well.. now I need to support Sign As different user, for that I need to clear existing windows authentication cache to force to ask credential once again.

Can any one help me?.

Thanks in advance

Upvotes: 1

Views: 4073

Answers (1)

Nipun Ambastha
Nipun Ambastha

Reputation: 2573

It stores both certificate data and also user passwords.

Open a command prompt, or enter the following in the run command

rundll32.exe keymgr.dll,KRShowKeyMgr

Windows 7 will open window to delete all stored values.

See this if it helps you

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/A_448-How-to-DELETE-Windows-Local-Domain-Cached-Credentials.html

http://www.roelvanlisdonk.nl/?p=825

Upvotes: 1

Related Questions