JohnWaweru Posted September 6, 2013 Share Posted September 6, 2013 I have a problem with my sessions and header redirects when I move my files from the local development machine to production server. Everything works well on the localhost but sessions cease to store data as required when moved to production. I have tried uploading to a different server to test whether it was a problem with how the other server was configured and it turns out I was right since the code works just as well as it did on my local development machine. Can anyone point out what pitfalls I might be overlooking. The system is a simple shopping cart that redirects shoppers to the previous page they came from to continue shopping or to check out immediately after adding the product details. I have attached the code. The buyer moves from: pricing.php -> wholesale.php -> addproduct.php then finally -> cart.php pricing.php wholesale.php addproduct.php cart.php Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted September 6, 2013 Share Posted September 6, 2013 (edited) if you are getting actual error messages, posting them would be helpful. if you are not getting error messages and the symptom is that session variables don't work, you need to set php's error_reporting to E_ALL and display_errors to ON, preferably in your php.ini, or alternatively in your script, immediately after the first opening <?php tag, and before all other php statements, to get php to help you by reporting and displaying any errors it detects. Edited September 6, 2013 by mac_gyver 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.