Re: Weird sessions problem

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

 



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
*/

-- 
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