sackling Posted January 31, 2011 Share Posted January 31, 2011 One of my sites is working perfectly. it hides the oscid but keeps the session no problem however this other site I can't seem to figure out what is going on. first off here is my configuration.php: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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://www.mysite.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.mysite.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '.mysite.com'); define('HTTPS_COOKIE_DOMAIN', '.mysite.com'); define('HTTP_COOKIE_PATH', '/tmp/'); define('HTTPS_COOKIE_PATH', '/tmp/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_IMAGESMED', 'imagesmed/'); define('DIR_WS_IMAGES_SQUARE', 'images_square/'); 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_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home3/mysitecom/public_html/'); 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', 'mysite_mysite'); // define('DB_SERVER_PASSWORD', 'mysite_'); // define('DB_DATABASE', 'mysite'); // define('USE_PCONNECT', 'false'); // use persistent connections? // define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'mysitecom_mysiteco'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'mysitecom_oscommerce'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' // gift cert define('DIR_WS_GCIMAGES', 'gc/'); define('GCLOGO', 'giftcertificate.gif'); define('GC_BORDERCOLOR', '1 0 0 0'); define('GC_TYPECOLOR', '1 .6 0 .4'); define('GC_GIFTCOPY', 'A Special Gift For You!'); ?> second of all for any link I am using tep_href_link function like so for example: <a href="<?php echo tep_href_link(FILENAME_LOCATIONS); ?>">Locations</a> This is exactly the way I have it setup on my other site and it works. The only difference I can think of is that they are on different servers but the DIR_FS_CATALOG has been set correctly along with the other items. can you think of anything that I am doing wrong? when i scroll over the link on this site I also see the oscid in the url on the browser status bar before i click even. on the site that it is working I don't have that. Link to comment Share on other sites More sharing options...
FIMBLE Posted January 31, 2011 Share Posted January 31, 2011 your cookie settings are incorect .mysite.com to mysite.com Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
♥FWR Media Posted January 31, 2011 Share Posted January 31, 2011 the following should work: - define('HTTP_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
FIMBLE Posted January 31, 2011 Share Posted January 31, 2011 or this define('HTTP_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); Nic whoops sorry Robert! Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
sackling Posted January 31, 2011 Author Share Posted January 31, 2011 of course i figure it out minutes after posting.. replacing session.php fixed it. Not sure why yet but obviously something was changed in there. Link to comment Share on other sites More sharing options...
sackling Posted February 1, 2011 Author Share Posted February 1, 2011 or this define('HTTP_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); Nic whoops sorry Robert! Thanks for your help.. This afternoon after a replaced the sessions.php file it was working perfectly. There was no oscid displayed and anything in a cart would stay from page to page.. Now even though nothing was changed.. It is back to showing the oscid. How is that possible?? Making the changes you suggested to the configuration file has no effect. Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 1, 2011 Share Posted February 1, 2011 Thanks for your help.. This afternoon after a replaced the sessions.php file it was working perfectly. There was no oscid displayed and anything in a cart would stay from page to page.. Now even though nothing was changed.. It is back to showing the oscid. How is that possible?? Making the changes you suggested to the configuration file has no effect. These define('HTTP_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com'); should be define('HTTP_COOKIE_DOMAIN', '.www.mysite.com'); define('HTTPS_COOKIE_DOMAIN', '.www.mysite.com'); 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 Link to comment Share on other sites More sharing options...
♥FWR Media Posted February 1, 2011 Share Posted February 1, 2011 These define('HTTP_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com'); should be define('HTTP_COOKIE_DOMAIN', '.www.mysite.com'); define('HTTPS_COOKIE_DOMAIN', '.www.mysite.com'); Incorrect. www.mysite.com is correct. To make cookies visible on all subdomains you prefix with a dot e.g. .mysite.com Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
sackling Posted February 1, 2011 Author Share Posted February 1, 2011 Incorrect. www.mysite.com is correct. To make cookies visible on all subdomains you prefix with a dot e.g. .mysite.com Thanks everyone. I am currently using .mysite.com and it is working again. I'm not sure why it stopped working for a bit it might have been because of a bad link. But it seems ok now. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.