|
Developing a Login System with PHP and MySQL
|
Other links at PHP > Tutorials > User Authentication |
| 1. |
A Simple Sessions Tutorial
|
|
|
This is a short tutorial on how to use the sessions (in PHP4) with a user, form-based login. This would be useful for just about any site where you had a "members only" area and wanted to validate the users from a database or anything else. The examples used authorize off of a MySQL database on the same server.
|
| 3. |
Simple login script
|
|
|
This is a simple login script that allows you to login to your website and stay logged in.
|
| 4. |
Maintaining state with PHP4 sessions
|
|
|
HTTP as a protocol is stateless, which doesnt make it easy for a developer. For example, your web server sends out a page to someone ordering from an online shop, and then forgets all about it. A few seconds later, the same person sends another request, ordering another item. As far as the web server is concerned, it could be an entirely different person. So to make sure the right orders are associated with the right person, a developer has to employ some sneaky tricks. Before PHP4, you could have used something like PHPLIB for session management. But PHP4 comes with a complete set of sessioning functions. This article explains how to use them.
|
| 5. |
Securing PHP Files using HTTP Authentication
|
|
|
It is quite common to have the need to password protect a certain file or a set of files, in order to prevent unauthorized access to those files. There are many different alternatives on how to do this including, sessions, cookies, JavaScript and HTTP authentication. Peter shows you how to implement simple HTTP authentication.
|
|
|