Login systems

Four different ways to know who is using your site, from "build it yourself" to "let Google do it".

1.passwords/ — How passwords are stored
Hashing and checking. Understand this before anything else here.
2.self-login/ — Writing your own login
A form, a users table, and password_verify().
3.school-login/ — The shared school login system
Start with login1.php. Includes permission levels and landing pages per role.
4.google-api/ — Requiring a Google sign-in
The four functions you need, with examples.
5.google-login/ — Google login, object style
Automatic login, a manual trigger, and logout.