I have made an mvc3 application with Windows Authentication. Everything works fine but I can't seem to find a way to log-out. I have read that I have to use forms Authentication with AD impersonation, because I still want to access the guid from the ad. Has anyone else found a different method to do this.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There is a Javascript solution in order to do this. Otherwise, I'm not sure that it can be done without impersonation or use the FormsAuthentication
option.
回答2:
You won't be able to logout because the Kerberos authentication will persist for all pages. A solution would be to use Forms Authentication. Then you could easily call:
FormsAuthentication.SignOut();
Is this what you're looking for?
标签:
asp.net-mvc-3