Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Different session id with each click


Guest

Recommended Posts

Hi All

 

My Site is live and working near perfect! Livingstyle Homepage

 

However I have just noticed a problem that would explain why I haven't had any orders in the last few days!!!

 

I changed the home page to include picture links for ease of use. Unfortunately however I have just found out that if you start of by clicking one of these links each subsequent link/click gives you a new session id (OscID882709209387098etc)I assume that is what this long number is! This has a catastrophic effect on a customers shopping basket since when they order something and click continue shopping the next thing is the session id changes and they subsequently have a new empty basket. I noticed this when i saw that 16 people were logged on with the same ip address. At first I thought wow I'm doing well!! Imagine my dissapointment.

 

Anyway as a temporary interim fix I have had to resort to force cookie usage but that will need to be changed.

 

I have an idea through trying to find the answer to this problem that I should have used this piece of code

 

tep_href_link()

 

Unfortunately I do not know how to write it correctly. my current links take this format

 

<TD align="center"><A Href ="http://www.livingstyle.co.uk/catalog/index.php/cPath/33"><img src="http://www.livingstyle.co.uk/catalog/images/thumbs/corfetn.jpg" border="0" alt="UK Fireplace Collection"><BR><font size="2"face="verdana">Fireplaces</font></a></TD>

 

I know it is ugly and style sheets would minimise the code but I havent got round to it, anyway that's another issue.

 

I would appreciate it if someone with a bit more knowledge than me could have a look at my site try it out and see if they can give me some help!

 

Any pointers on how to do this so it works would be greatly appreciated.

Link to comment
Share on other sites

Hi Thanks here is my config.php as requested

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 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.livingstyle.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://livingstyle.co.uk'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'livingstyle.co.uk');
 define('HTTPS_COOKIE_DOMAIN', 'livingstyle.co.uk');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 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_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/www/vhtdocs/livingstyle.co.uk/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'xxx.xxx.xxx.xxx'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'xxxxx');
 define('DB_SERVER_PASSWORD', 'xxxx');
 define('DB_DATABASE', 'xxxxxx');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Please comment

 

thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...