Пример #1
0
        public void SessionSignOut(string userName)
        {
            IMembershipService MembershipService = new AccountMembershipService();

            if (!MembershipService.LogOut(userName))
            {
                throw new Exception("Logout unsuccess");
            }
        }
Пример #2
0
        public void SignOut(string userName)
        {
            FormsAuthentication.SignOut();
            IMembershipService MembershipService = new AccountMembershipService();

            if (!MembershipService.LogOut(userName))
            {
                throw new Exception("Logout unsuccess");
            }
        }