This is a discussion on Help Session ID -> $customer_id becomes an array. within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; hi guys, need your help here. When i buy products and proceed all the way to checkout success, it seems ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| hi guys, need your help here. When i buy products and proceed all the way to checkout success, it seems that i can't click on my account_history_info.php to check my orders history. On further checking (thru echoing every single variable), i found that my customer_id session var has become an array... (therefore cannot compare with the customer_id from the orders table). can someone tell me wat would cause this problem? the offending code is --> $customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['order_id'] . "'"); $customer_info = tep_db_fetch_array($customer_info_query); if ($customer_info['customers_id'] != $customer_id) { tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTOR Y, '', 'SSL')); } where $customer_id becomes an array. this problem only occurs occasionally. sometimes, when 2 customers are logged in at the same time and buying stuff, after checking out, 1 of the customer's customer_id will also become corrupted and revert to the other customer's ID. can someone help? |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| session id in URL | cominus | osCMax v1.7 Discussion | 3 | 11-11-2004 05:34 PM |
| Session ID | andyy15 | osCommerce 2.2 Modification Help | 3 | 08-15-2004 11:40 PM |
| What code for sub-category array? | u2web | osCommerce 2.2 Modification Help | 2 | 10-28-2003 05:03 PM |
| SSL Errors, Session Cookie, Session Cache, NOVICE Problems? | hanool | osCommerce 2.2 Modification Help | 1 | 09-07-2003 11:49 AM |
| session id | thorben | osCommerce 2.2 Installation Help | 2 | 06-03-2003 06:35 AM |