コード例 #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");
            }
        }