Windows Authentication: Logout
-
Hi, I have a website where Windows Authentication is used to log in the site. I have used ASP.NET 2.0. I need to add a button "Logout" that will close the session and bring the windows authentication window in response to click event. Any Suggestion Please!
-
Hi, I have a website where Windows Authentication is used to log in the site. I have used ASP.NET 2.0. I need to add a button "Logout" that will close the session and bring the windows authentication window in response to click event. Any Suggestion Please!
In the Click Event of the Logout button call this FormsAuthentication.SignOut() FormsAuthentication.RedirectToLoginPage() First statement will destroy the authentication ticket, next statement will redirect to the page, which is specified in the authentication section of web.config file.
-
In the Click Event of the Logout button call this FormsAuthentication.SignOut() FormsAuthentication.RedirectToLoginPage() First statement will destroy the authentication ticket, next statement will redirect to the page, which is specified in the authentication section of web.config file.