Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Customers losing their cart


Recommended Posts

Hi everyone,


I have a rather urgent problem.


My website is www.atlargenutrition.com


We had to re-install our server OS lately and ever since, many of our customers are complaining about adding items to their cart and it not being in their cart. I figure its a session problem, though from hours and hours of reading up on it I cannot work out what to do to fix it.


It must be a problem with different server settings, thats the only thing that has significantly changed?


Whats so odd is that there is nothing thats consistent in people complaining.


Some are on aol, some are not.


Some use firefox, some use IE. Some only have the bug with fire fox, some with IE too?


I am really stressing as what to do.


I am using ms 2.1


Can anyone help and guide me to the right fix?


I would be willing to pay anyone who can fix this for me, its very important to me, I know I amlosing customers left right and center on this one and it needs fixing asap!


Thanks, look forward to some help!



Link to comment
Share on other sites

Post your includes/configure.php file. Make sure you obscure the database information.


Thanks for the reply, its appreciated..




osCommerce, Open Source E-Commerce Solutions



Copyright © 2002 osCommerce


Released under the GNU General Public License



// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.atlargenutrition.com'); // eg, http://localhost - should not be NULL for productive servers

define('HTTPS_SERVER', 'https://atlargenutrition.com'); //

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');



define('DIR_FS_DOCUMENT_ROOT', '/home/atlargen/public_html/');

define('DIR_FS_CATALOG', '/home/atlargen/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');



// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers




define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'


Link to comment
Share on other sites

You have two different domains: www.atlargenutrition.com (for HTTP) and atlargenutrition.com (for HTTPS). My browser sets two cookies: one when I'm browsing, and one when I'm logging in. They are two different cookies, so they are considered two different sessions.




define('HTTP_SERVER', 'http://www.atlargenutrition.com');




define('HTTP_SERVER', 'http://atlargenutrition.com');


And see if that fixes it.



Discount Coupon Codes


Link to comment
Share on other sites

You are using cookies. Sessions are stored in the database on the server, but there must be a way to identify which session a client belongs to. If you do not believe me, use any browser to navigate to your site and look at the cookies. If you have navigated to both http:// and https://, then you will see two different cookies. These two different cookies identify two different sessions stored in the database.



Discount Coupon Codes


Link to comment
Share on other sites

I'm having the same problem. I'm running an old version of OSC and the problem started about 6 weeks ago.


I tried your site and was able to add a product without a problem. I have the same frustration, because I'm unable to duplicate the problem to track down this issue. When I add a product to our site at it always adds the product to my cart.


Please keep me update if you figure out this issue. I'll do the same if I track it down.


As for the previous post, both my HTTP_SERVER and HTTPS_SERVER values are the same, therefore, I don't think this will solve the problem

Link to comment
Share on other sites

I am fairly sure I am not using cookies, my browser does not put a cookie on my computer.


I did make the change you suggested in case that worked, and have yet to hear from people who had problems. I will let you know.


I am not sure it will fix the problem though as I am 99.9% sure my cart is not using cookies.

Link to comment
Share on other sites

Your browser may not, but mine does. This would explain why some of your customers are having problems.


A cookie is being requested by your server. These are the HTTP headers sent:


HTTP/1.x 200 OK

Date: Tue, 31 Jan 2006 15:01:09 GMT

Server: Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.1 FrontPage/ mod_ssl/2.8.25 OpenSSL/0.9.7a

Set-Cookie: osCsid=f1fa3e7557ae8830f1afbfc8ed8e593a

Expires: Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Pragma: no-cache

Connection: close

Transfer-Encoding: chunked

Content-Type: text/html



Note the line that says "Set-Cookie." This is being sent by your webserver.



Discount Coupon Codes


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...