Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login again before checkout


Guest

Recommended Posts

Hi everyone,

 

My Webpage

 

I've got admin behind shared ssl and wonder if I've still got summat wrong with my configure.php's.

 

Log on to site as existing or new user/customer. Put stuff in shopping cart. Go to checkout and it asks you to log in again.

 

I'd expect that if you hadn't logged on as a customer to begin with but not otherwise. Is that assumption right?

 

Here's part of catalog configure:-

 

  define('HTTP_SERVER', 'http://www.pjandcoe.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://phantom.xssl.net/pjandcoe.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', 'pjandcoe.co.uk');
 define('HTTPS_COOKIE_DOMAIN', '');
 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/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/var/www/html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

And admin configure:-

  define('HTTP_SERVER', 'https://phantom.xssl.net/pjandcoe.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.pjandcoe.co.uk');
 define('HTTPS_CATALOG_SERVER', 'https://phantom.xssl.net/pjandcoe.co.uk');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/blah/'); // absolute path required
 define('DIR_FS_ADMIN', '/var/www/html/blah/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/var/www/html/'); // absolute path required
 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/');

 

 

Any comments welcomed.

 

Cheers

 

Nick

Link to comment
Share on other sites

The problem is with cookies - try the following with /includes/configure.php on the catalog side:

 

 define('HTTP_SERVER', 'http://www.pjandcoe.co.uk'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://phantom.xssl.net); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'pjandcoe.co.uk');
define('HTTPS_COOKIE_DOMAIN', 'phantom.xssl.net');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/pjandcoe.co.uk/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/pjandcoe.co.uk'/');

 

Matti

Link to comment
Share on other sites

Hi Matti,

 

No mate. If I do that then none of the ssl pages will come up. e.g. won't load login page, just gives a 404 thus:-

 

The requested URL /MUNGED/pjandcoe.co.uk/login.php was not found on this server.

 

I don't know if it makes a difference but I've got force cookies off in my admin Sessions settings...

 

Session Directory /tmp

Force Cookie Use False

Check SSL Session ID True

Check User Agent False

Check IP Address False

Prevent Spider Sessions True

Recreate Session True

 

Any other suggestions?

 

TIA

 

Nick

 

http://www.alphacos.co.uk

Link to comment
Share on other sites

Session Directory /tmp

Force Cookie Use False

Check SSL Session ID False

Check User Agent False

Check IP Address False

Prevent Spider Sessions True

Recreate Session False

 

On those servers you are correct to leave your https cookie domain blank, but your http cookie domain should be 'www.pjandcoe.co.uk'

 

Make sure that you have use_pconnect set to 'false' and that you have your config files set to store session in 'mysql'

 

Other than that your config files are correctly set up.

 

Vger

Link to comment
Share on other sites

Correction to my last post.  Your https domain should be https://phantom.unitedhosting.co.uk/~pjandcoe.co.uk

 

Vger

 

 

Sorry Rhea. I'm a bit thicker than usual today...

 

1/ What is use-pconnect from your first post?

 

2/ From above quote - https domain? Do you mean HTTPS_COOKIE_DOMAIN or HTTPS_SERVER?

 

Cheers

 

Nick

 

http://www.alphacos.co.uk

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...