TAILIEUCHUNG - Wrox’s ASP.NET 2.0 Visual Web Develope 2005 Express Edition Starter Kit phần 10

Trong Chương 6, chúng tôi tạo ra một trang quản trị, cho phép người dùng cập nhật các mục trình đơn, và trong Chương 8, chúng tôi tạo ra các trang thanh toán. Chúng tôi không muốn mọi người có thể để chạy các trang quản trị, vì vậy chúng tôi cần để khóa chúng ra bằng cách nào đó. | 9 Security and Deployment In Chapter 6 we created an administration page allowing a user to update the menu items and in Chapter 8 we created the checkout page. We don t want everyone to be able to run the administration page so we need to lock them out somehow. For the checkout it would be good to recognize members of the site and give them the option of having their order added to their account instead of paying by cash or credit card. The aim is to have a site where users can log in and have functionality change depending upon whom they are. In this chapter we will look at the following How security works and how to configure it How to add users and roles to a site How to secure pages How to change the menu system so that secured pages are not shown on the menu We will also look at the topic of what to do once you ve created your first site and how you can copy this to a service provider to make the site public. Let s start with the security aspects. Configuring Security Security revolves around the two concepts authentication and authorization. Authentication is the process of identifying users of a Web site and authorization is checking that the user is allowed to access the page he or she is trying to access. Each of these requires configuration the first to determine who the users are and the second to define which pages they are allowed access to. In you manage authentication with the Membership service which allows definition of the members of a site. There are many places to store the membership details including a text file a database or even the Windows user accounts store. We ll be using a database but won t be storing the users in the PPQ database. Instead we ll use the database that automatically creates for us. Chapter 9 You can configure authorization either on a user-by-user basis or by roles using the Role Manager service. Roles are a way to make configuration easier because you set the configuration for the role and then you add

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.