|
Convert Your Free Members into Paying Subscribers
|
Other links at PHP > Tutorials > User Authentication |
| 1. |
Session Management with PHP4
|
|
|
One of the new great features with PHP4 is the session management feature. It allows you to store variables in a session object during a user visit. This article discusses what a session and a session variable are, and what it can do.
|
| 2. |
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.
|
| 3. |
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.
|
| 4. |
PHP-Based User Authentication
|
|
|
This tutorial teaches you to initiate user authentication using PHP, and then to authenticate users by matching the value of the global variables $PHP_AUTH_USER, and $PHP_AUTH_PW to a list of valid usernames and passwords. The sample code included with this tutorial will show you how to use either hard-coded values, a flat file, an existing .htpasswd file or a database table to manage your valid usernames and passwords. This tutorial is intended for the PHP programmer who is generally familiar with authentication, but who would be interested in learning a practical method for authenticating access to one or more Web site pages.
|
| 5. |
Convert Your Free Members into Paying Subscribers
|
|
|
Show your visitors that membership does have its privileges! If you havent already put the protected membership area of your website into place, thats the first order of business. Pick up some quality subscription software that will streamline the subscription process and manage your membership database.
|
|
|