public ActionResult Delete() { var formsService = new FormsAuthenticationService(); formsService.SignOut(); return Json(new { Success = true }); }
public override void Execute() { var membershipService = new AccountMembershipService(); if (membershipService.ValidateUser(SessionDetail.UserName, SessionDetail.Password)) { var formsService = new FormsAuthenticationService(); formsService.SignIn(SessionDetail.UserName, false); } }
protected override void Initialize(RequestContext requestContext) { if (FormsService == null) { FormsService = new FormsAuthenticationService(); } if (MembershipService == null) { MembershipService = new AccountMembershipService(); } base.Initialize(requestContext); }