Re: [PHP] echo SESSION var doesn't work if unset after echo

2008-12-09 Thread Ashley Sheridan
On Tue, 2008-12-09 at 16:51 -0500, Eric Wood wrote: > I have two vars doing the same thing. One is echo'd/unset in the > section and the other echo'd/unset in the footer of the page. > No re-direct request is being made. > > Ok now check this. If I use this code: > > if(isset($_SESSION["Ec

Re: [PHP] echo SESSION var doesn't work if unset after echo

2008-12-09 Thread Eric Wood
I have two vars doing the same thing. One is echo'd/unset in the section and the other echo'd/unset in the footer of the page. No re-direct request is being made. Ok now check this. If I use this code: if(isset($_SESSION["Ecomm"])) { echo $_SESSION["Ecomm"]; unset($_SESSION["Ecomm"]);

Re: [PHP] echo SESSION var doesn't work if unset after echo

2008-12-09 Thread Tim | iHostNZ
On Wed, Dec 10, 2008 at 8:11 AM, <[EMAIL PROTECTED]> wrote: > > Fire up Live HTTP Headers in Firefox. > Where is this "Live HTTP Headers in Firefox"? Is it an extension? > > My theory is that the browser is RE-requesting the data because of the > private, must-revalidate. > > So it goes like this

Re: [PHP] echo SESSION var doesn't work if unset after echo

2008-12-09 Thread Ashley Sheridan
On Tue, 2008-12-09 at 19:11 +, [EMAIL PROTECTED] wrote: > Fire up Live HTTP Headers in Firefox. > > > > My theory is that the browser is RE-requesting the data because of the > private, must-revalidate. > > > > So it goes like this: > > > > Browser -> GET -> Ecomm: fooie ; unset Ecomm

Re: [PHP] echo SESSION var doesn't work if unset after echo

2008-12-09 Thread ceo
Fire up Live HTTP Headers in Firefox. My theory is that the browser is RE-requesting the data because of the private, must-revalidate. So it goes like this: Browser -> GET -> Ecomm: fooie ; unset Ecomm Browser -> GET -> Ecomm: [not set] If you are using Ajax and JS and whatnot, the p