scd Posted March 19, 2008 Posted March 19, 2008 This problem has been really pushing me for most of the day.... no idea where to even start! 1. I log in 2. I add an item to my cart. 3. I continue shopping 4. I look up another item 5. I click "Details" to enter the product_info.php. 6. I get logged out and cart resets!! EVERYTIME! Anyone got any advice? Cheers, Dave
Jack_mcs Posted March 19, 2008 Posted March 19, 2008 It's becaue the session ID's are being lost and can be caused by a number of things. First, try posting your includes/configure.php file here, without the database login details. Someone will look at it to make sure it is setup correctly. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
scd Posted March 20, 2008 Author Posted March 20, 2008 Okay, as you can see, this is still being tested locally... don't know if that changes anything though... <?php define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'http://localhost'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', 'localhost'); define('HTTP_COOKIE_PATH', '/osc/'); define('HTTPS_COOKIE_PATH', '/osc/'); define('DIR_WS_HTTP_CATALOG', '/osc/'); define('DIR_WS_HTTPS_CATALOG', '/osc/'); 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', 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/osc/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '******'); define('DB_SERVER_PASSWORD', '******'); define('DB_DATABASE', 'osc'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
Jack_mcs Posted March 20, 2008 Posted March 20, 2008 Try changing these lines define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'http://localhost'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', 'localhost'); define('HTTP_COOKIE_PATH', '/osc/'); define('HTTPS_COOKIE_PATH', '/osc/'); define('DIR_WS_HTTP_CATALOG', '/osc/'); define('DIR_WS_HTTPS_CATALOG', '/osc/'); to these define('HTTP_SERVER', 'http://localhost/osc'); define('HTTPS_SERVER', 'http://localhost/osc'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'localhost/osc'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); And just to make it easier to maintain for future changes, change this define('DIR_FS_CATALOG', 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/osc/'); to this define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
scd Posted March 20, 2008 Author Posted March 20, 2008 Thanks Jack, that neatened things up a little, but unfortunately, it didn't solve the problem.
Jack_mcs Posted March 20, 2008 Posted March 20, 2008 Turn off any SEO rewrite contribution or option the site might be using. They don't always work in such setups. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
juniorprg Posted March 20, 2008 Posted March 20, 2008 check the code at the detail link...if you havnt mistakenly done anything wrong l8ter
scd Posted March 21, 2008 Author Posted March 21, 2008 check the code at the detail link...if you havnt mistakenly done anything wrong You're a legend. I didn't think to look for something that simple. Clicking the image or item title entered the prod_info page perfectly. I've commented out the details button for now (as i don't have a buy button either) and i think it suits my site.. but i'll get into the button issue when i have some more time. Cheers Junior! :thumbsup: Dave
Recommended Posts
Archived
This topic is now archived and is closed to further replies.