llbbl
12-08-2004, 06:12 AM
This is the best one that I have found.
Introduction
I wrote the popular evolt.org tutorial PHP Login Script with Remember Me Feature mainly as an introduction to user sessions and cookies in PHP. Since it was created as a learning tool, many advanced features were left out of the script. By popular demand, I have written and am presenting here a complete Login System, with all the features that were left out of the first script, that can be easily integrated into any website.
Notes
This article is intended primarily for intermediate to advanced users of PHP, as it is not exactly a tutorial, but a description of the implementation of an advanced Login System. Beginners who are looking to learn about user session and cookies in PHP are advised to read the above mentioned tutorial before reading this article.
Features
Here are some of the features in this Login System that weren't included in the initial tutorial:
* Better Security - Passwords are not stored in cookies, randomly generated ids take their place.
* Member Levels - Now users can be differentiated by what level they are (user, admin, etc.)
* Admin Center - As an admin, you have full control over registered users. You can view user info, upgrade/demote user levels, delete users, delete inactive users, and ban users.
* Visitor Tracking - You can now tell how many guests and users are actively viewing your site, and who those users are. You also know how many total members your site has.
* Account Info - Users can now view their own information, and edit it as well. They can also see the information of other users.
* Form Helper - No more ugly error pages! Now users are redirected to the form they filled out and the errors that have occurred are displayed.
* Forgot Password - Users who forget their password can have a new one generated for them and sent to their email address.
* Email - Now emails can be sent to newly registered users.
* Miscellaneous - Much better code design, smooth page transitions, and MORE!
http://www.evolt.org/article/PHP_Login_System_with_Admin_Features/17/60384/index.html
Here you can download the script below. I had to change it to a rar inorder to make it past our filters :D
Introduction
I wrote the popular evolt.org tutorial PHP Login Script with Remember Me Feature mainly as an introduction to user sessions and cookies in PHP. Since it was created as a learning tool, many advanced features were left out of the script. By popular demand, I have written and am presenting here a complete Login System, with all the features that were left out of the first script, that can be easily integrated into any website.
Notes
This article is intended primarily for intermediate to advanced users of PHP, as it is not exactly a tutorial, but a description of the implementation of an advanced Login System. Beginners who are looking to learn about user session and cookies in PHP are advised to read the above mentioned tutorial before reading this article.
Features
Here are some of the features in this Login System that weren't included in the initial tutorial:
* Better Security - Passwords are not stored in cookies, randomly generated ids take their place.
* Member Levels - Now users can be differentiated by what level they are (user, admin, etc.)
* Admin Center - As an admin, you have full control over registered users. You can view user info, upgrade/demote user levels, delete users, delete inactive users, and ban users.
* Visitor Tracking - You can now tell how many guests and users are actively viewing your site, and who those users are. You also know how many total members your site has.
* Account Info - Users can now view their own information, and edit it as well. They can also see the information of other users.
* Form Helper - No more ugly error pages! Now users are redirected to the form they filled out and the errors that have occurred are displayed.
* Forgot Password - Users who forget their password can have a new one generated for them and sent to their email address.
* Email - Now emails can be sent to newly registered users.
* Miscellaneous - Much better code design, smooth page transitions, and MORE!
http://www.evolt.org/article/PHP_Login_System_with_Admin_Features/17/60384/index.html
Here you can download the script below. I had to change it to a rar inorder to make it past our filters :D