View Full Version : Keep going back to sign in screen
I can get items in my cart, when i'm logged in, then checkout. Whether i pick the credit card option or cod, it returns me to the sign-in screen. Help please!!
http://rodeostuff.com/osCommerce/catalog/index.php
You must have the cookie path wrong in the includes/configure.php file
Post the file, with sensitive information removed here, and we'll take a look at it.
/ Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://rodeostuff.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://rodeostuffcom.secure.powweb.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'rodeostuff.com');
define('HTTPS_COOKIE_DOMAIN', 'https://rodeostuffcom.secure.powweb.com');
define('HTTP_COOKIE_PATH', '');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/osCommerce/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/osCommerce/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', '/www/r/ronpeed/htdocs/osCommerce/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
// define our database connection
define('DB_SERVER', 'mysql01.powweb.com'); // eg, localhost - should not be empty for productive servers
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>
Ok, try something like this:
/ Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://rodeostuff.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://rodeostuffcom.secure.powweb.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'rodeostuff.com');
define('HTTPS_COOKIE_DOMAIN', 'rodeostuffcom.secure.powweb.com');
define('HTTP_COOKIE_PATH', '/osCommerce/catalog/');
define('HTTPS_COOKIE_PATH', '/osCommerce/catalog/');
define('DIR_WS_HTTP_CATALOG', '/osCommerce/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/osCommerce/catalog/');
That's if you want to have it installed under rodestuff.com/oscommerce/catalog/
I would suggest to install it under rodeostuff.com/catalog/
Otherwise it is one directory deeper and may take longer to be indexed by search engines, plus it doesn't look that good.
If you decide to move it to rodeostuff.com/catalog/ just change the last for lines that I posted above to /catalog/
You're welcome, glad it worked :cool:
villadec
10-7-04, 09:56 PM
how about if i want to have the cookies in the root directory, or does it matter?
thanks
You can - it's probably even preferrable. Particularly with the recent changes, you may wish to save the sessions data and cookies in a directory you create (for example /cookies/ or /sessions/) parallel to (outside of) htdocs, so that it is not viewable except on the server. If you just save it in a cookies folder with open permissions the data might be compromised.
-Karl F.
PowWeb Technical Support
support@powweb.com
The proper use of sessions in osCommerce is to select 'mysql' and not use files.
Cookies are not stored in files. The path is used by the web browser to differentiate cookies that may be used at different parts of a site, it does not harm to just use '/' for the cookie paths.
pdxhairball
10-18-04, 03:15 PM
Hi, sorry to post on everyone else's thread about this, but I am desperately trying to fix a similar problem. Can someone look at my configure.php and tell me what I am doing wrong?
The weirdest thing is, when I first installed osCommerce, it worked fine. I haven't touched anything since the install. But I recently noticed that my shopping cart empties even after I hit "Add to cart". Help!
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://pdxhairball.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://pdxhairball.secure.powweb.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'pdxhairball.com');
define('HTTPS_COOKIE_DOMAIN', 'pdxhairball.secure.powweb.com');
define('HTTP_COOKIE_PATH', '/order/catalog/');
define('HTTPS_COOKIE_PATH', '/order/catalog/');
define('DIR_WS_HTTP_CATALOG', '/order/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/order/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', '/www/xxxxx/order/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
// define our database connection
define('DB_SERVER', 'mysqlXX.powweb.com'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', 'username');
define('DB_SERVER_PASSWORD', '*********');
define('DB_DATABASE', 'XXXXXXl');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
pdxhairball
10-18-04, 08:34 PM
Just want to update that Jade Dragon helped me fix the problem in this thread. (http://forum.powweb.com/showthread.php?p=245386#post245386)
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.