June 2005
Intermediate
720 pages
20h 6m
English
In Chapter 9, I wrote many versions of the login.php and logout.php scripts, using variations on cookies and sessions. Here I’ll develop standardized versions of both that adhere to the same practices as the whole application. The login query itself is slightly different here in that it also checks that the active column has a NULL value, which means that the user has activated their account.
1. | Create a new document in your text editor (Script 13.8).
<?php # Script 13.8 - login.php Script 13.8. The login form will redirect the user to the home page after registering the first name and user ID values in a session
|
2. | Require the configuration file and the HTML header. ... |
Read now
Unlock full access