Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cookie issue


ImageTakers

Recommended Posts

I've trawled the forum for an answer to this one but I've not found anything helpful yet. So I apologise in advance if this is covered somewhere else.

 

I'm using the following:

 

OsC v2.2 rc2

PHP 5.2.8

Apache 2.2.11

 

I've installed OsC on my PC without any problems with a view to completing all the customisation etc before uploading to my host. I've got the site looking how I want it and have started to address some of the other issues like security and such. One of the things I wanted to do first was to turn off the session id in the url, so I've changed my settings to force cookie usage.

 

Force Cookie Use True

Check SSL Session ID False

Check User Agent False

Check IP Address False

Prevent Spider Sessions True

Recreate Session True

 

So far so good. The only problem is that whilst cookies seem to be working in the admin part of the site, when I go to create an account on the main part of the site (or anything that involves being logged in) I get the cookie usage page up telling me I have cookies turned off!! I can see the osCAdminID cookie on my PC, so it's not a browser issue! How come OsC can't write the osCsid cookie? My config settings look like this:

 

define('HTTP_SERVER', 'http://localhost');

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', 'http://localhost');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', 'C:/EasyPHP/www/catalog/');

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', 'C:/EasyPHP/www/catalog/admin/');

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

define('DIR_FS_CATALOG', 'C:/EasyPHP/www/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

I don't think there's anything unusual here, and I haven't modified the code at all. So far I've only made changes to the stylesheet and some graphics!

 

Can anyone suggest what might be the problem please?

 

Thanks.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...