i want to change the status = 0 in Login table when user logout using MVC,
do anyone have any idea about this...
i tried this way,
public ActionResult LogOut(Login log)
{
FormsAuthentication.SignOut();
log.Status = 0;
Session.Abandon();
Session.Clear();
Response.Cookies.Clear();
Session.RemoveAll();
return RedirectToAction("Login", "Login");
}
but, not working... thanks in advance..