Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What are correct Cookie Settings in configure.php?


britchops

Recommended Posts

Hi

 

My current settings are:

 

define('HTTP_COOKIE_DOMAIN', 'http://www.britchops.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'https://www.britchops.co.uk');

define('HTTP_COOKIE_PATH', 'www.britchops.co.uk');

define('HTTPS_COOKIE_PATH', 'www.britchops.co.uk');

 

Is this right? If so, why do I keep getting the OSCID's in my URL's?

 

Thanks

 

TJ

 

PS Force Cookie Use is Set to False in Admin Sessions as I have a shared SSL.

Link to comment
Share on other sites

No, they are not correct. They should be

define('HTTP_COOKIE_DOMAIN', '.www.britchops.co.uk');
 define('HTTPS_COOKIE_DOMAIN', '.www.britchops.co.uk');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');

This assumes the shop is in the root. See here for more detail.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Sorry Jack these settings don't work for me nor the link settings you gave?????

 

Anything else?

 

TJ

 

PS Are the OSCsID's supposed to disappear after 2 clicks? I want them to.

Link to comment
Share on other sites

It would seem that these are the correct settings as the OSCsID's have disappeared:

 

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

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

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

 

Could you verify that these are correct ( or NOT!)?

 

Thanks

 

TJ

Link to comment
Share on other sites

As mentioned, what I posted assumed the shop was in the root. Your's isn't so that has to be changed. That is covered in the thread I supplied a link to.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...