I am trying to implement Logout Functionality in ASP.NET MVC.
I use Forms Authentication for my project.
This is my Logout code:
FormsAuthen
This method works, if you do not disable[comment] the following tags in the web.config file to test your web application easily.
public ActionResult SignOut() { FormsAuthentication.SignOut(); return RedirectToAction("Index", "Home"); }
web.config