ChiPoLy Posted October 15, 2021 Share Posted October 15, 2021 Hi there! I just updated the PHP Server to Version 5.6.40, so my register_globals went outdated. After some research, found this compatibility layer by HPDL; https://github.com/osCommerce/oscommerce2/commit/ce9673bdcf82cf36785af25f42cea78724831d89#diff-37171063918967125379d5de7f238b7f After those changes it seems that everything is ok, but when submiting the checkout_shipping.php form and redirecting to checkout_payment.php, I loose session, all parameters are gone. $_SESSION info before redirections: cart= language=espanol languages_id=3 currency=MXN navigation= is_cashier=1 my_pos=1 my_cat=5 customer_id=7 customer_default_address_id=11745 customer_first_name=Edwin customer_full_name=Edwin%20Villarreal customer_country_id= customer_zone_id= customer_zipcode=80016 customer_city=Culiac%C3%A1n customer_state=Sinaloa customer_wholesale=1 sendto=11745 cartID= $_SESSION info at checkout_payment.php cart= language=espanol languages_id=3 currency=MXN navigation= the redirection code from checkout_shipping.php: if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) { $shipping = array('id' => $shipping, 'title'=> $title, 'method' => $skymod, 'cost' => $cost); tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } Admin-Config-Sessions : Quote Session Directory /tmp Force Cookie Use False Check SSL Session ID False Check User Agent False Check IP Address False Prevent Spider Sessions True Recreate Session True Already tested Recreate Session False/True with no difference. So... what else am I missing? Any help will be very appreciated! Edwin Link to comment Share on other sites More sharing options...
ChiPoLy Posted October 15, 2021 Author Share Posted October 15, 2021 After many fails, decided to wait for any suggestions in this forum.... meanwhile I went to edit some codifications errorrs and voilá! Perhaps the miscoded fields stored in $_SESSIONS where crashing the session and that was the problem! Link to comment Share on other sites More sharing options...
bonbec Posted October 15, 2021 Share Posted October 15, 2021 Personally, I replaced the sessions.php files from Ms2.2 by those from Osc 2.3. As a precaution, rename the old sessions.php files to sessions_old.php for example to be able to go back if things are wrong. with OsC 2.2 since 2006 ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.