public void SessionSignOut(string userName) { IMembershipService MembershipService = new AccountMembershipService(); if (!MembershipService.LogOut(userName)) { throw new Exception("Logout unsuccess"); } }
public void SignOut(string userName) { FormsAuthentication.SignOut(); IMembershipService MembershipService = new AccountMembershipService(); if (!MembershipService.LogOut(userName)) { throw new Exception("Logout unsuccess"); } }