Re: $_SESSION variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Unset($_SESSION['order'][$reference]['quantity']); will clear the entire session object


Bastien

Sent from my iPod

On Oct 24, 2009, at 8:01 AM, Ron Piggott <ron.php@xxxxxxxxxxxxxxxxxx> wrote:


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@xxxxxxxxxxxxxxxxxxxx>
Reply-to: ash@xxxxxxxxxxxxxxxxxxxx
To: ron.php@xxxxxxxxxxxxxxxxxx
Cc: PHP General <php-general@xxxxxxxxxxxxx>
Subject: Re:  $_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




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux