TecTao Posted September 6, 2012 Share Posted September 6, 2012 A client called, seems that his hosting company upgraded from php Version 4.4.9 to Version 5.3.13. I went through and changed the <? to <?php, changed session_unregister() to unset($_SESSION[ ]) and session_register() to $_SESSION[ ]. In further reading it was suggested to change $HTTP_POST_VARS to $_POST. Still, certain pages are not passing session variables and wonder if the session variable approached should be scraped for a more straight forward passing of variables by Get and Post and then do the queries? Quote Link to comment Share on other sites More sharing options...
xyph Posted September 6, 2012 Share Posted September 6, 2012 unset($_SESSION) is dangerous, and can cause hard-to-debug issues. Use $_SESSION = array(); instead to wipe session data. Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 7, 2012 Share Posted September 7, 2012 Do you have error reporting set to E_ALL so you can find problems on those specific pages? (Once you fix them you can turn errors back off for security reasons) Quote Link to comment Share on other sites More sharing options...
Barand Posted September 7, 2012 Share Posted September 7, 2012 Those are all changes that should have been made 10 years ago! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.