Re: cart in a session
| From: | Daniel Brown | Date: | Mon, 10 Mar 2008 13:59:43 +0000 |
| Subject: | Re: cart in a session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271198@lists.php.net to get a copy of this message | ||
On Sat, Mar 8, 2008 at 4:18 PM, Bill <billlab51@hotmail.com> wrote:
> Hi
>
> Is it a good idea to put a cart in a session var since the cart will be an
> array ?
Yes, and it's far more secure than putting the actual data into a
cookie, since that can be changed on the client-side to alter prices
and other data.
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>