Re: sessions or db for shopping cart
| From: | Brian Clark | Date: | Tue, 30 Jan 2001 13:23:26 +0000 |
| Subject: | Re: sessions or db for shopping cart | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37338@lists.php.net to get a copy of this message | ||
Hello Matthew,
(MD == "Matthew Delmarter") matt@adplusonline.com steered:
MD> 1. Using arrays stored in a PHP4 session vs. a database for
MD> storing cart details.
Bad idea, if you're dealing with cookies, as any user can manipulate
the data on the client side and have your server gleefully accept the
cookie. Store cart data in a database, and access it based on a
session ID.
MD> 2. What is the best method of passing session data if cookies
MD> disabled.
In the query string.
-Brian