Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

configure.php, Cookie settings


fdcusa

Recommended Posts

Yeah, I messed up and overwrote my configure.php... :angry:

 

But, I managed to re-construct it -- I believe. :rolleyes:

 

There is one section, though, I am unsure of:

 

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

 

If my website is www.xyz.com, should 'HTTP_COOKIE_DOMAN' be '.xyz.com' ?

Should 'HTTP_COOKIE_PATH' be set to '/catalog/' ?

 

With my assumptions above set, I am able to add to cart and process an order, but just wondering if the above is right. I do not know where the cookies are actually stored on my host.

 

Any assistance will be most appreciated.

 

John

Link to comment
Share on other sites

It depends on where you have the trailing back slash

IF your store is under catalog it should look like

 

Top two lines look like

define('HTTP_SERVER', 'http://www.zxy.net');

define('HTTPS_SERVER', 'http://www.zxy.net');

 

Your lines look like

 

define('HTTP_COOKIE_DOMAIN', 'www.zyx.net');

define('HTTPS_COOKIE_DOMAIN', 'www.zxy.net');

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

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

 

If your store is root, then

 

define('HTTP_COOKIE_DOMAIN', 'www.zyx.net');

define('HTTPS_COOKIE_DOMAIN', 'www.zxy.net');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

 

 

HOWEVER,

If your top two lines look like

 

define('HTTP_SERVER', 'http://www.zxy.net/');

define('HTTPS_SERVER', 'http://www.zxy.net/');

 

then it should look like

 

define('HTTP_COOKIE_DOMAIN', 'www.zyx.net/');

define('HTTPS_COOKIE_DOMAIN', 'www.zxy.net'/);

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

 

Hope this helps rather than confuses!!

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Hi Nic,

 

Many thanks for the response. Yes, my case ended up being the latter. I'll do some reading up on the variables so that I understand them better.

 

Not confused too much ( B) ), as I am used to VB/SQL/some C, which has eased efforts for me to make modifications. I'll be lurking for alittle while before I attempt to contribute.

 

Cheers, John.

Link to comment
Share on other sites

  • 3 weeks later...
It depends on where you have the trailing back slash

IF your store is under catalog it should look like

 

----<snip>----

 

If your store is root, then

 

----<snip>----

 

HOWEVER,

If your top two lines look like

 

----<snip>----

 

then it should look like

 

----<snip>----

 

Hope this helps rather than confuses!!

 

Nic

 

Nic,

 

Could you (or someone) please post an explanation (or reference thereto) of why the two alternatives you've presented are each valid, under the differing circumstances? In other words, what's the general rule that, if I knew it, would allow me to derive the right answer for myself, under any relevant circumstances, rather than just trying to adapt your specific examples to my case?

 

You know, "teach a man to fish" vs. "give a man a fish." :)

 

Thanks,

 

Michael

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...