Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL problem - Cart contents disappear


Davefromcornwall

Recommended Posts

Posted

Hello, I need some help, please.

 

I'm trying to set up SSL on my Pets Express site.

 

When I sign up for an account I get redirected to the https bit. But when I try a test buy I get a "Your Shopping Cart is empty!" message.

 

The top of my "includes/configure.php" looks like this:

 

<?php
 define('HTTP_SERVER', 'http://pets-express.co.uk');
 define('HTTPS_SERVER', 'https://secure.svr1-speedyservers.com/~pets-exp');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'pets-express.co.uk');
 define('HTTPS_COOKIE_DOMAIN', 'pets-express.co.uk');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_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/');

 

And the top of my "admin/includes/configure.php" looks like this:

 

<?php
 define('HTTP_SERVER', 'http://pets-express.co.uk');
 define('HTTP_CATALOG_SERVER', 'http://pets-express.co.uk');
 define('HTTPS_CATALOG_SERVER', 'https://secure.svr1-speedyservers.com/~pets-exp');
 define('ENABLE_SSL_CATALOG', true);
 define('DIR_FS_DOCUMENT_ROOT', '/home/pets-exp/public_html/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', '/home/pets-exp/public_html/admin/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', '/home/pets-exp/public_html/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

Anyone know what I have done wrong? Any help would be greatly appreciated.

 

Thanks for reading this.

Posted
Hello, I need some help, please.

 

I'm trying to set up SSL on my Pets Express site.

 

When I sign up for an account I get redirected to the https bit. But when I try a test buy I get a "Your Shopping Cart is empty!" message.

 

The top of my "includes/configure.php" looks like this:

 

<?php
 define('HTTP_SERVER', 'http://pets-express.co.uk');
 define('HTTPS_SERVER', 'https://secure.svr1-speedyservers.com/~pets-exp');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'pets-express.co.uk');
 define('HTTPS_COOKIE_DOMAIN', 'pets-express.co.uk');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_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/');

 

And the top of my "admin/includes/configure.php" looks like this:

 

<?php
 define('HTTP_SERVER', 'http://pets-express.co.uk');
 define('HTTP_CATALOG_SERVER', 'http://pets-express.co.uk');
 define('HTTPS_CATALOG_SERVER', 'https://secure.svr1-speedyservers.com/~pets-exp');
 define('ENABLE_SSL_CATALOG', true);
 define('DIR_FS_DOCUMENT_ROOT', '/home/pets-exp/public_html/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', '/home/pets-exp/public_html/admin/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', '/home/pets-exp/public_html/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

Anyone know what I have done wrong? Any help would be greatly appreciated.

 

Thanks for reading this.

Fixed it!

 

In case it helps anyone else in the future, I had to change

 

define('HTTPS_COOKIE_DOMAIN', 'pets-express.co.uk');

 

to

 

define('HTTPS_COOKIE_DOMAIN', 'https://secure.svr1-speedyservers.com/~pets-exp');

Archived

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

×
×
  • Create New...