Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

oscid still showing on one of my sites


sackling

Recommended Posts

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

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', '/');

 

Link to comment
Share on other sites

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

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

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

Link to comment
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...