PHP Login Script
Posted by martin on 20 Sep 2002.
A complete PHP login script; includes user registration, login, logout, change password, change member details, and user list.
- Prevents session stealing by verifying session data on every request
- Remember-me cookie doesn't include the password at all, thus network sniffers may only log in as you but not change your password
- php-login-script.tgz, downloaded 17888 times.
- Complete code as gzipped tarball [6KB]
- php-login-script.zip, downloaded 32767 times.
- Complete code as zip archive [11KB]
- php-login-script.sql, downloaded 19085 times.
- Database schema
- user.php, downloaded 31504 times.
- User class
- signup.php, downloaded 16275 times.
- Sign up page
- login.php, downloaded 32493 times.
- Login page
- logout.php, downloaded 11353 times.
- Logout page
- password.php, downloaded 17765 times.
- Password change page
- edit.php, downloaded 7523 times.
- Member details edit page
- list.php, downloaded 6711 times.
- Member list page
- details.php, downloaded 6061 times.
- Member details page
- index.php, downloaded 9816 times.
- Member home page
- functions.php, downloaded 8122 times.
- Functions library
- global.php, downloaded 9036 times.
- Global page handler
- session_defaults.php, downloaded 7609 times.
- Session defaults