Jen7pc Posted June 11, 2005 Posted June 11, 2005 Hi, I'm having a problem with session cookies - nothing is getting put into the shopping cart. This is shared SSL Note: With this host the only way I've ever been able to get oscommerce to work is with the admin directory OUTSIDE the catalog directory ... I've got other oscommerce sites there which are fine. Also, I checked their server settings and session cookies are turned on. Here's my configure.php (configure.php,v 1.14 2003/07/09) define('HTTP_SERVER', 'http://www.mysite.com/'); // eg,... define('HTTPS_SERVER', 'https://secure19.host.net/secure1/mysite/'); // eg, ... define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://www.mysite.com/'); define('HTTPS_COOKIE_DOMAIN', 'https://secure19.host.net/secure1/mysite/'); define('HTTP_COOKIE_PATH', 'catalog'); define('HTTPS_COOKIE_PATH', 'catalog'); define('DIR_WS_HTTP_CATALOG', 'catalog/'); define('DIR_WS_HTTPS_CATALOG', '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/'); define('DB_SERVER', 'localhost'); // eg, localhost - ... define('DB_SERVER_USERNAME', 'xxx'); define('DB_SERVER_PASSWORD', 'yyy'); define('DB_DATABASE', 'zzz'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler ... Note: I tried many combinations, including: define('HTTPS_COOKIE_PATH', 'https://secure19.hostek.net/secure1/jasonelias-acupuncture/catalog'); Here's the server info: Session Support enabled Registered save handlers files user Directive Local Value Master Value session.auto_start Off Off session.bug_compat_42 Off Off session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_lifetime 0 0 session.cookie_path /admin/ / session.cookie_secure On On session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 100 100 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.name osCAdminID PHPSESSID session.referer_check no value no value session.save_handler user files session.save_path /tmp D:\Program Files\php\sessiondata session.serialize_handler php php session.use_cookies On On session.use_only_cookies Off Off session.use_trans_sid Off Off Any suggestions? Many thanks, JWM :'(
Guest Posted June 11, 2005 Posted June 11, 2005 Use these settings...or use them as a guide: define('HTTP_SERVER', 'http://www.mysite.com'); // eg,... define('HTTPS_SERVER', 'https://secure19.host.net/secure1'); // eg, ... define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '.mysite.com'); define('HTTPS_COOKIE_DOMAIN', '.secure19.host.net'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/mysite/catalog/');
Jen7pc Posted June 11, 2005 Author Posted June 11, 2005 Use these settings...or use them as a guide: define('HTTP_SERVER', 'http://www.mysite.com'); // eg,... define('HTTPS_SERVER', 'https://secure19.host.net/secure1'); // eg, ... define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '.mysite.com'); define('HTTPS_COOKIE_DOMAIN', '.secure19.host.net'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/mysite/catalog/'); <{POST_SNAPBACK}> Well, still not working: In your example above, I get the 'no input file specified' error if I remove the mysite/ from the define('HTTPS_SERVER', and ditto if I add it to define('DIR_WS_HTTPS_CATALOG' I tried variations of that last line. Here's what I've got now, and it's taking me to the cookies not enabled page - though they are (and the host also got the same response). define('HTTP_SERVER', 'http://www.mysite.com/'); define('HTTPS_SERVER', 'https://secure19.hostek.net/secure1/mysite/'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', '.mysite.com/'); define('HTTPS_COOKIE_DOMAIN', '.secure19.hostek.net/secure1/mysite/'); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); Could the admin directory not being within catalog be messing things up? Thanks, JWM
Guest Posted June 11, 2005 Posted June 11, 2005 define('HTTP_SERVER', 'http://www.mysite.com'); define('HTTPS_SERVER', 'https://secure19.hostek.net'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', '.mysite.com/'); define('HTTPS_COOKIE_DOMAIN', '.secure19.hostek.net'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/secure1/mysite/catalog/');
Jen7pc Posted June 11, 2005 Author Posted June 11, 2005 Nope ... I'm running it by the host again - you're right, there's some refinement ... when I add the extra to the last line it reverts to the 'no input file specified' Thanks ... later .... JWM
Jen7pc Posted June 11, 2005 Author Posted June 11, 2005 Now the host is suggesting that I move the site to a linux box and reinstall the osc linux version. Any comments? JWM :'(
Jen7pc Posted June 12, 2005 Author Posted June 12, 2005 You're not already on a Linux box? <{POST_SNAPBACK}> Is it much much better to be on a linux box? Thanks, JWM
♥Vger Posted June 12, 2005 Posted June 12, 2005 Now the host is suggesting that I move the site to a linux box and reinstall the osc linux version. Any comments? Yes, I have one comment. There is no such thing as an osC Linux version. The version is the same whether you are hosted on a Linux box using an Apache web server, or a Windows box using Windows web server. Your host should know this, but the fact that they apparently don't does not say too much for their knowledge. osCommerce will work on Windows or Apache web servers, but there's no doubt it's easier to get working correctly on an Apache web server. Vger
Guest Posted June 12, 2005 Posted June 12, 2005 as long as the properties are set properly on a windows box, osCommerce works great there. just a tiny bit tricker getting setup, if the host doesnt know how to do that and they supply windows boxes, i wouldnt trust them with linux boxes either.
Jen7pc Posted June 13, 2005 Author Posted June 13, 2005 Thanks all - it's true they don't know osc, but are great in other ways. I found another forum and the no input file specified error turned out to be a php.ini issue - root_doc. I'm just sort of hammering my way through - haven't succeeded completely yet, but getting closer. thnks,. jwm
Recommended Posts
Archived
This topic is now archived and is closed to further replies.