1
Reply

how to set status = 0 when logout

Dheeraj Sharma

Dheeraj Sharma

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