Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Staying Logged In As A Customer


ScorpionWsM

Recommended Posts

Posted

Hi Guys,

 

I had this problem once before a long time ago and I managed to find a fix or fix it myself, but I havent played with osCommerce for a while.

 

I have got a shared SSL and I goto the login page, I log in and then it takes me to the index page and automatically logs me out of the account.

 

I add goods to the basket, and try to check out, which brings me to the sign in page, I do that again and again it logs me back out again.

 

How and where do I have to change the code so that a customer stays logged in until they wish to log out?

 

Thanks for any help given :)

 

Regards

 

Mark

Posted

It will most likely be an incorrect setting for your https cookie domain - especially as it is a shared ssl. It should be something like:

'sslserver.yourhost.com/yourdomain.com'

 

But without knowing the actual shared ssl I can't be more precise. Whatever it is it should not contain any http:// or https://, or, for a shared cert, any www.

 

Vger

Posted

Hi,

 

Thanks for your reply. Here is my configure.php file or the important bits from includes/configure.php

 

define('HTTP_SERVER', 'http://www.vibratorsextoy.co.uk'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://sslrelay.com/'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.vibratorsextoy.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'www.vibratorsextoy.co.uk');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/vibratorsextoy.co.uk/');

 

The false for enable SSL has just been switched on, and I can log into account etc and checkout, but obviously via not using a secure means.

 

Regards

 

Mark

Posted

define('HTTP_SERVER', 'http://www.vibratorsextoy.co.uk');

define('HTTPS_SERVER', 'https://sslrelay.com/vibratorsextoy.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', 'www.vibratorsextoy.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'sslrelay.com/vibratorsextoy.co.uk');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

Vger

Posted

I knew that, was just a test to see if someone else did ;)

 

I had to remove the https://ssrelay.com/vibrator etc etc from the https server though as would come up with a 404 page.

 

Thats on a 1 & 1 webhosting if someone has the same problem.

 

*** Removed the smut ***

 

Next job to sort out, the padlock being shown ;)

 

Cheers

Archived

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

×
×
  • Create New...