tailieunhanh - Secure PHP Building 50 Practical Applications Development phần 3
Trong chương này, bạn đã học về một hệ thống xác thực trung tâm, trong đó bao gồm một tên đăng nhập và đăng xuất ứng dụng và chứng thực một cơ sở dữ liệu trung tâm. Tất cả các ứng dụng PHP trong mạng nội bộ của bạn hoặc Web có thể sử dụng thiết bị này xác thực trung tâm. | Chapter 5 Central Authentication System 155 1 row in set sec After logging out mysql select from sessions Empty set sec You can see that the session is started after and the session is removed once the user runs . Summary In this chapter you learned about a central authentication system which involves a login and logout application and a central authentication database. All PHP applications in your intranet or Web can use this central authentication facility. When an application is called directly by entering the URL in the Web browser it can check for the existence of a session for the user and if an existing session is found she is allowed access or else she is redirected to the login form. The logout application can be linked from any PHP application to allow the user log out at any time. Once logged out the session is removed. Having a central authentication system such as this helps you reduce the amount of code and maintenance you need to do for creating a seamless authentication process throughout your entire Web or intranet environment. Chapter 6 Central User Management System IN THIS CHAPTER Designing a user management system for the central authentication system Implementing a user management system Managing administrator and regular users Creating a user-password application Creating a forgotten-password recovery application A CENTRAL USER MANAGEMENT system is a set of applications that enables you to manage users for your PHP applications in a central manner. Using the applications developed in this chapter you will be able to manage user accounts that are stored in the central authentication database created in the previous chapter. Identifying the Functionality Requirements First let s define the functionality requirements for the user management system. The user manager must provide the following functionality Central user database The user manager must use a central user database. This is a requirement because of our .
đang nạp các trang xem trước