PHP error message
Posted on 2014-08-23
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?