ASP.NET Windows Authentication logout
问题 How do you logout when using Windows authentication in ASP.NET like this web.config? <authentication mode="Windows" /> I've already tried the following unsuccessfully. It redirects, but does not log out the user. void logoutButton_Click(object sender, EventArgs e) { HttpContext.Current.Session.Clear(); HttpContext.Current.Session.Abandon(); ViewState.Clear(); FormsAuthentication.SignOut(); Response.Redirect("/"); } Background Info: I have to use Windows authentication because I need to