Re: $_SESSION act funny...
| From: | Scott Fletcher | Date: | Wed, 09 Jul 2003 17:02:55 +0000 |
| Subject: | Re: $_SESSION act funny... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154591@lists.php.net to get a copy of this message | ||
I'm kind of expecting them to change because using the hyperlink to go to
the next webpage should be treated as such for the same file (webpage file).
The reason I'm using the same file is because of the navigation menu with
all of the menu options that go to the include file...
"Mike Migurski" <mike@saturn5.com> wrote in message
news:Pine.GSO.4.52.0307090954320.2596@atari...
> >If you go to the next webpage by using the same file (webpage) or a
> >$_SERVER['PHP_SELF'], the data in the $_SESSION array remain the same, it
> >does not change as it should.
>
> <snip>
>
> > if ($_SESSION['test'] == "one") { $_SESSION['test'] =
> > "two" };
> > if ($_SESSION['test'] == "two") { $_SESSION['test'] =
> > "three" };
> > if ($_SESSION['test'] == "three") { $_SESSION['test'] =
> > "four" };
> > if ($_SESSION['test'] == "four") { $_SESSION['test'] =
> > "one" };
>
> The code above will always result in $_SESSION['test'] == 'one', if you
> start from any of the four tested values. Is there some other behavior you
> are expecting?
>
> ---------------------------------------------------------------------
> michal migurski- contact info and pgp key:
> sf/ca http://mike.teczno.com/contact.html
>