Re: $_SESSION variables
| From: | Ron Piggott | Date: | Sat, 24 Oct 2009 12:01:15 +0000 |
| Subject: | Re: $_SESSION variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299296@lists.php.net to get a copy of this message | ||
I am programming a shopping cart.
So far I have used
$_SESSION['order'][$reference]['quantity'] = 0;
if the customer changed their mind about buying an item. Is there a way
to remove the session variable altogether?
Ron
-----Original Message-----
From: Ashley Sheridan <ash@ashleysheridan.co.uk>
Reply-to: ash@ashleysheridan.co.uk
To: ron.php@actsministries.org
Cc: PHP General <php-general@lists.php.net>
Subject: Re: [PHP] $_SESSION variables
Date: Sat, 24 Oct 2009 12:52:17 +0100
On Sat, 2009-10-24 at 07:52 -0400, Ron Piggott wrote:
> Instead of doing:
>
> $_SESSION['order'][$reference]['quantity'] = 0;
>
> Is there a way to get remove that part of the array altogether?
>
> Ron
>
>
I don't understand your question..
Thanks,
Ash
http://www.ashleysheridan.co.uk