osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Help Session ID -> $customer_id becomes an array.

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-07-2005, 08:30 PM
New Member
 
Join Date: Mar 2005
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
loba
Default Help Session ID -> $customer_id becomes an array.

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 11:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax