simple user and password login #login
Edit
by Martin Meyers - 10 years ago (2015-01-22)
User name and password login
| I need a simple file based login class. |
Ask clarification
1 Recommendation
Secure PHP Login System: Register and login users using a database via PDO
This class can register and login users using a database via PDO.
It can process the registration of a user given the user name, password, name and email address.
It can also authenticate a user given the user name and password and optionally set a cookie to remember the user name on the next login.
The class starts a session for successfully authenticated users.
It can also log out by ending the user session, send a password reminder message and change the user password.
It also implements a two step login process similar to that of Google's, Facebook's SMS security process.
The user can see they devices they used to log in as well as log out from a device used before.
The class also provides an administration interface to manage users, edit details, see statistics, etc..
| by Manuel Lemos 26695 - 10 years ago (2015-01-22) Comment
There are plenty of login classes. Most of them use a database server to store records like MySQL or PostgreSQL because it is more robust than using files.
If you really need to store your user records in a file, you can use a SQLite database file and access it using this package that relies on PDO, so it could be used to access SQLite database files. |