Re: Weird sessions problem
| From: | Jason Wong | Date: | Sun, 28 Nov 2004 20:03:31 +0000 |
| Subject: | Re: Weird sessions problem | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203024@lists.php.net to get a copy of this message | ||
On Sunday 28 November 2004 22:46, steve wrote:
> I tried printing out the values before and after each of those lines. After
> line 53, $ref_page is an array containing precisely the values I expect, so
> the function is working. After line 54, the session var has been reset, as
> expected, to match the current page - but $ref_page has also changed and is
> now equal to $_SESSION['ref_page'], which is what I found very weird - ie,
> resetting $_SESSION['ref_page'] simultaneously reset $ref_page.
Is $ref_page getting set to what the _previous_ value of $_SESSION['ref_page']
was? If so, it sounds like you have register_globals enabled.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I think we're in trouble.
-- Han Solo
*/