Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Site is losing osCsid string in URL


jonw118

Recommended Posts

Posted

Hello all...

 

I have a question. If this may have anything to do with it, I am using STS 4.x, where I have a few different links coded into the template (ie, Index, Forum, etc).

 

For some reason it does not carry the osCid= string with it when you click one of those URLs. Therefore it loses the session, logs the user out and deletes the cart.

 

Also, not sure if it matters - but the site is hosted in a subdomain (ie: catalog.XXXX.com)... maybe something in the config?

 

Does anyone know why or what settings I should check?

 

Thanks!

Posted

The links have to coded using the in-built function of oscommerce. You can't use standard html link code.

 

Upon further reading it appears there is something wrong in my config... as someone pointed out on another forum topic that you shouldn't even be seeing the osCid after a couple clicks. The domain is hosted on subdomain... can anyone tell me what's wrong with my config with respect to the cookie path:

 

define('HTTP_SERVER', 'http://mgb.XXX.com');

define('HTTPS_SERVER', 'http://mgb.XXX.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'mgb.XXX.com');

define('HTTPS_COOKIE_DOMAIN', 'mgb.XXX.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

Posted

Yes, there are mistakes in it. See here to fix it. However, that is not your problem. Fixing the configure file will cause the session ID to disappear when it should. You're problem is that it goes away when it shouldn't.

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

Archived

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

×
×
  • Create New...