Ejemplo n.º 1
0
        public void SessionSignOut(string userName)
        {
            IMembershipService MembershipService = new AccountMembershipService();

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

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