Re: [PHP] deleting $_SESSION

2005-04-11 Thread Marek Kilimajer
Jochem Maas wrote: Marek Kilimajer wrote: Jochem Maas wrote: John Nichel wrote: Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/thin

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Jochem Maas
Marek Kilimajer wrote: Jochem Maas wrote: John Nichel wrote: Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Marek Kilimajer
Jochem Maas wrote: John Nichel wrote: Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_SESSION['total'] = null;

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Jochem Maas
John Nichel wrote: Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_SESSION['total'] = null; ...which has the sam

Re: [PHP] deleting $_SESSION

2005-04-11 Thread John Nichel
Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_SESSION['total'] = null; ...which has the same effect as using:

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Marek Kilimajer
Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_SESSION['total'] = null; ...which has the same effect as using:

RE: [PHP] deleting $_SESSION

2005-04-11 Thread Chris W. Parker
Jochem Maas on Monday, April 11, 2005 10:45 AM said: > this oneliner might give you a little insight: > $x=1;$y=2;unset($x);$y=null;var_dump($x,isset($x),empty($x),$y,isset($y) ,empty($y)); > ?> If that's a oneliner I'd hate to see a twoliner! :P Chris. -- PH

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Jochem Maas
AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; I guess you didn't know/think of trying null: $_SESSION['total'] = null; ...which has the same effect as using: unset($_SESSION['tot

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Ryan A
use unset() -Ryan On 4/11/2005 4:43:06 PM, AndreaD ([EMAIL PROTECTED]) wrote: > I have a session variable called > > > > $_SESSION['total'] the problem is I > can't delete/reset it. I have tried > > $_SESSION['total']= 0; > > $_SESSION['total']= ""; > > > and the thing remains. Is there a

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Josip Dzolonga
On ÐÐÐ, 2005-04-11 at 15:43 +0100, AndreaD wrote: > I have a session variable called > > $_SESSION['total'] the problem is I can't delete/reset it. I have tried > > $_SESSION['total']= 0; > > $_SESSION['total']= ""; www.php.net/unset , unset($_SESSION['total']); Josip Dzolonga, http://josip.do

Re: [PHP] deleting $_SESSION

2005-04-11 Thread -k.
--- AndreaD <[EMAIL PROTECTED]> wrote: > I have a session variable called > > $_SESSION['total'] the problem is I can't > delete/reset it. I have tried Try unset. unset($_SESSION['total']); http://us4.php.net/manual/en/function.unset.php -k. _

[PHP] deleting $_SESSION

2005-04-11 Thread AndreaD
I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; and the thing remains. Is there a special way to delete them?? AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: