Home arrow PHP arrow Page 2 - Building an E-Commerce Site Part 2: Managing Users with Sessions

Assumptions and Requirements - PHP

This is the second article in a three-part series dealing with using PHP 4 and MySQL to make a comprehensive e-commerce storefront solution. This article covers session management within the store, user privileges, and a few security concerns.

  1. Building an E-Commerce Site Part 2: Managing Users with Sessions
  2. Assumptions and Requirements
  3. Primer on Sessions
  4. User Management and Privileges
  5. Step 1: Creating the Users Table
  6. Step 2: Extracting the New Scripts
  7. Step 3: General Script Changes from Tutorial 1
  8. Step 5: User Scripts
  9. Step 6: A Note on Security
  10. Step 7: Putting It All Together
By: Ying Zhang
Rating: starstarstarstarstar / 33
May 16, 2000

print this article



Before reading this guide, you should have read and completed part 1 of this series. Specifically, you should have the mymarket database created and the product catalog administrative scripts up and running.

If you have not already done so, please read Part 1 of this guide at:

Also, if you want to follow this guide and get a working site, you must use PHP4 because of the built-in session management features. In most of the scripts, we use PHP4 specific features that are not available in PHP3.

NOTE: If you want to get these examples to work in PHP3, you will have to rewrite some of the functions used in the example script files. You need to:

- provide your own session library;

- reorganize all the scripts so that the functions are defined before you call them;

- change all occurrences of <?=$var?> to <?echo $var?>.

>>> More PHP Articles          >>> More By Ying Zhang

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: