Introduction to Authentication in PHP
Authentication is the process of identifying a user by the website. For this, the user usually must enter their username and password. After that, our site performs authorization for this user, that is, grants them certain rights to perform operations.
Of course, initially this user must undergo registration on this very site: come up with a username (i.e., a name on the site), and ensure this name is not already taken, and choose a password.
Usually, the username is public information, which is visible to all site visitors. Well, and the password is private information, so that only the owner of this username can access their data, or in other words - their account on the site.
In the next lessons, we will figure out how authorization and registration of users are implemented in PHP.