We help IT Professionals succeed at work.
Get Started

PHP error message

breeze351
breeze351 asked
on
241 Views
Last Modified: 2014-09-02
I've been using $_SESSION var on this site.  But now I'm getting weird results.

My variable ($_SESSION['Last_Page']) is showing the wrong variable.   I have 2 pages Space_Display and Space_Edit.  They both call "Street_Print.php".  "Street_Print" executes a print inclusion.  I've got rid of the print logic, and the session variable still get;s set to "Space_Edit".  

I'm getting the following error if I select certain pages in a certain order.

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0

The page is hosted on a remote server that I have no control of (HOSTING24.COM)

I've googled "register_global" and it tells me to change the servers php.ini

After more research, will this code work in my "index.php" and flow through all the pages?
php_register_globals=1

Thanks
Glenn
Comment
Watch Question
Most Valuable Expert 2011
Author of the Year 2014
Commented:
This problem has been solved!
Unlock 1 Answer and 16 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE