Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't get sessions to work


stigc8

Recommended Posts

Posted

Hey guys,

 

When I first installed OSCommerce I chose the store session data in a directory.

/tmp the weird thing is that no matter what I tried OScommerce complains

 

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

 

Even if I chmod the dir to 777 it still didn't work.

 

So then I decided to modify the line from

oscommerce/catalog/includes/configure.php

 

to define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

 

so now it should use mysql but it still complains of this error. I also modified the location of my SSL url and those changes have not taken effect.

 

It seems editing configure.php has no effect for some reason.

 

Can someone please help me out?

 

Thanks

Posted

Hi stigc8,

 

First, make sure you chmod your configure.php file so you can write to it....

Sounds funny but most ftp programs will not give a noticable error message!

 

Sessions should be set to mysql...

 

Check out the file permissions and set to mysql and let me know if that helped...

 

Phil

Posted

Phil,

 

Thanks for your reply. The actual problem is that i was editing the wrong file. I was in /admin/includes instead of catalog/includes

 

I didn't think there would be two configure.php files so I never thought about the path.

 

So, everything is now working fine except that when I use SSL mode to checkout it thinks nothing is in the cart, even though there is. If I turn SSL off it works fine. I am using shared SSL if that matters.

Posted

There are a lot of posts about this problem - I believe it has to do with your catalog/includes/configure.php and specifically the cookie paths.

 

They should be the same...

 

I use shared SSL - here is my configure.php

 

define('HTTP_SERVER', 'http://www.naturalitycandles.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://wwwxx.powweb.com/~xxxx'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.naturalitycandles.com');

define('HTTPS_COOKIE_DOMAIN', 'wwwxx.powweb.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

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

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

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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Archived

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

×
×
  • Create New...