Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Forcing Sessions to Cookies


Weirfire

Recommended Posts

Hello,

 

I'm having problems forcing the sessions to cookies on www.thesaddleryshop.co.uk

 

Basically whats happening is, that an error is coming up saying that cookies are not enabled on my computer when they are. I've tried getting other people to check the site but they get the same error even when their cookies are enabled. I've had to change it back to use sessions in the URL but does anyone have any idea why the error would be coming up when cookies are in fact enabled on the users computer?

 

 

 

Thanks

Stephen Weir

Link to comment
Share on other sites

Make sure the cookie domains are set correctly.

 

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

define('HTTPS_COOKIE_DOMAIN', 'thesaddleryshop.co.uk');

 

I'd probably change the...

 

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

 

to:

 

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

 

Just to match the https one although it should work either way.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Make sure the cookie domains are set correctly.

 

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

define('HTTPS_COOKIE_DOMAIN', 'thesaddleryshop.co.uk');

 

I'd probably change the...

 

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

 

to:

 

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

 

Just to match the https one although it should work either way.

 

 

Thanks Alan. I'll let you know if this sorts the problem. :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...