Session Abandon in MVC

Session Abandon Logout in MVC

Session.Abandon();

 <a class="dropdown-item" href="@Url.Action("LogOut", "Home")"><i class="mdi mdi-logout m-r-5 text-muted"></i> Logout</a>
public ActionResult LogOut()
        {
            Session.Abandon();
            return RedirectToAction("Index", "Home");
        }

2020-01-31