Blaat Posted January 25, 2004 Share Posted January 25, 2004 I have installed osCommerce but it seems that I cannot login. When I register and try to login it doens't work (Welcome Guest remains standing at the top) or it works for a few seconds and after that i have to login again. Also my SSL doesn't seems to work right, but i have mailed my hostingprovider for this. Does anyone know an answer for this problem? Maybe my sessions are not working correctly. My osCommerce site Link to comment Share on other sites More sharing options...
Blaat Posted January 25, 2004 Author Share Posted January 25, 2004 Testingaccount: [email protected] = login LtjCK = password Link to comment Share on other sites More sharing options...
Guest Posted January 25, 2004 Share Posted January 25, 2004 Most likely your cookie settings in catalog/includes/configure.php are incorrect. Matti Link to comment Share on other sites More sharing options...
Blaat Posted January 25, 2004 Author Share Posted January 25, 2004 I can't see how? This is my configure.php // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.led-shop.nl'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://ssl8.solidserver.net'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.led-shop.nl'); define('HTTPS_COOKIE_DOMAIN', 'www.led-shop.nl'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/ssl.led-shop.nl/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/ssl.led-shop.nl/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/'); Link to comment Share on other sites More sharing options...
Guest Posted January 25, 2004 Share Posted January 25, 2004 Try: define('HTTPS_COOKIE_DOMAIN', 'ssl8.solidserver.net'); Matti Link to comment Share on other sites More sharing options...
Blaat Posted January 25, 2004 Author Share Posted January 25, 2004 Okay... I feel quite stupid that I didn't saw this before :D Thanks a lot for your help Matti! Link to comment Share on other sites More sharing options...
♥MYC267 Posted January 25, 2004 Share Posted January 25, 2004 I am having a similar problem and it's driving me nuts, I wish my problem was that easy. Below is my configure.php <?php /* osCommerce, Open Source E-Commerce Solutions [URL=http://www.oscommerce.com]http://www.oscommerce.com[/URL] Copyright ? 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://dev.modyourcar.com.au'); // eg, [URL=http://localhost]http://localhost[/URL] - should not be empty for productive servers define('HTTPS_SERVER', 'http://securedev.modyourcar.com.au'); // eg, [URL=https://localhost]https://localhost[/URL] - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'dev.modyourcar.com.au'); define('HTTPS_COOKIE_DOMAIN', 'securedev.modyourcar.com.au'); 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('HEADER_IMG_PIC', 'header.jpg'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/a/home/users/goldpromotions/dev.modyourcar.com.au/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'XXX'); define('DB_SERVER_PASSWORD', 'XXX'); define('DB_DATABASE', 'XXX'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> When I create a new account it doesn't log me in automatically, when I simply try and log in it doesn't log me in BUT if I add an item to my cart and log in it logs me in!!?? Why? I can't figure it out and I have been looking for the answer for a few days. Any assistance would be sooo appreciated. The site is at http://dev.modyourcar.com.au That's my current testing environment (pre-production). Dan Link to comment Share on other sites More sharing options...
Guest Posted January 25, 2004 Share Posted January 25, 2004 Change: define('HTTPS_SERVER', 'http://securedev.modyourcar.com.au'); to: define('HTTPS_SERVER', 'https://securedev.modyourcar.com.au'); Matti Link to comment Share on other sites More sharing options...
♥MYC267 Posted January 26, 2004 Share Posted January 26, 2004 Matti.... I don't have a secure layer for my dev site, only my production site. I have this domain setup however to mimic the SSL. It shouldn't be a problem though should it? It doesn't really matter if it is in SSL or not cause it's still another domain. Dan Link to comment Share on other sites More sharing options...
Guest Posted January 26, 2004 Share Posted January 26, 2004 Matti.... I don't have a secure layer for my dev site, only my production site. I have this domain setup however to mimic the SSL. It shouldn't be a problem though should it? It doesn't really matter if it is in SSL or not cause it's still another domain. I think there would be problems as https is expected by much of the script?.... first time I have heard of somebody trying this - sorry I am too busy to really apply my mind to the question. Matti Link to comment Share on other sites More sharing options...
♥MYC267 Posted January 28, 2004 Share Posted January 28, 2004 The script itself does no checking for https, I looked and couldn't find anything. But yer I thought that "could" be the problem. When I remove the SSL from the config it works fine. I still have the problem though that when someone creates an account it doesn't automatically log them in which is pretty dumb. If they create an account it should log them in. Doesn't look like anyone has tried what I have done so looks like I'll have to wait and see. Thanks Johnson for all your help. It's appreciated. Dan Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.