Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
how to set status = 0 when logout
Dheeraj Sharma
Jan 2 2018 6:10 AM
121
Reply
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..
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to show seating layout in mvc view by using api?
routing concept will u explain clearly please