Dheeraj Sharma

Dheeraj Sharma

  • NA
  • 98
  • 29k

how to set status = 0 when logout

Jan 2 2018 6:10 AM
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.. 

Answers (1)