Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Addon domain configuration


pmakulski

Recommended Posts

I've received the incantation from my host on how to reference the SSL connection.

It is

 

define('HTTP_SERVER', 'http://myaddon.org');

define('HTTPS_SERVER', 'https://server1.myhost.com/~myaccount/myaddon');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'myaddon.org');

define('HTTPS_COOKIE_DOMAIN', 'myaddon.org');

define('HTTP_COOKIE_PATH', '/mystore/');

define('HTTPS_COOKIE_PATH', '/mystore/');

define('DIR_WS_HTTP_CATALOG', '/mystore/');

define('DIR_WS_HTTPS_CATALOG', '/mystore/');

 

Add account seems to work now in the SSL.

However, when I check out, it forgets who I am logged in as.

I assume this has to do with cookies, so I must have to change something in the HTTPS_COOKIE_DOMAIN

Can somebody tell me the incantation for the cookie domain in this configuration?

 

Thanks

Link to comment
Share on other sites

I've received the incantation from my host on how to reference the SSL connection.

It is

 

define('HTTP_SERVER', 'http://myaddon.org');

define('HTTPS_SERVER', 'https://server1.myhost.com/~myaccount/myaddon');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'myaddon.org');

define('HTTPS_COOKIE_DOMAIN', 'myaddon.org');

define('HTTP_COOKIE_PATH', '/mystore/');

define('HTTPS_COOKIE_PATH', '/mystore/');

define('DIR_WS_HTTP_CATALOG', '/mystore/');

define('DIR_WS_HTTPS_CATALOG', '/mystore/');

 

Add account seems to work now in the SSL.

However, when I check out, it forgets who I am logged in as.

I assume this has to do with cookies, so I must have to change something in the HTTPS_COOKIE_DOMAIN

Can somebody tell me the incantation for the cookie domain in this configuration?

 

Thanks

I'm not fully knowledgeable on php, but have you tried giving the cookie address the same as your https address?

eg.

define('HTTPS_COOKIE_DOMAIN', 'https://server1.myhost.com/~myaccount/myaddon');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...