Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hiding SID


PeterSprak

Recommended Posts

Posted

Hi all,

 

This is really bigining to bug me. :angry: For SEO purposes I would like to hide the SID that appears when you click on a product. Can anyone please advise how I go about doing this. :rolleyes:

 

Regards. Peter.

Posted

if you enable 'force cookie use' you get no sid, if thats not suitable there are other techniques to be found here with a little searching.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Thanks Sam,

 

I have just tried that and for some unknown reason I get the page advising how to change the settings for cookies on Internet explorer but although I have made the necessary changes, I still keep getting the same page.

 

Can I trouble you once more and ask if you know what the other methods are or point me in the right direction please? :blush:

 

Thanks again Peter.

Posted
Thanks Sam,

 

I have just tried that and for some unknown reason I get the page advising how to change the settings for cookies on Internet explorer but although I have made the necessary changes, I still keep getting the same page.

 

Can I trouble you once more and ask if you know what the other methods are or point me in the right direction please? :blush:

 

Thanks again Peter.

I don't recommend using the Force Cookie option. You just need to adjust your configure file to get the SID's to go away. Try posting your configure file here, without the login data, or search the forums for setting this up.

 

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

Posted
I don't recommend using the Force Cookie option. You just need to adjust your configure file to get the SID's to go away. Try posting your configure file here, without the login data, or search the forums for setting this up.

 

Jack

 

Hi Jack,

 

Is the configuration file in the admin folder? If so, there does not appear to be any login details.

 

Regards. Barry.

I have built an online store solely with the help of this forum.

Posted
The file is named configure.php and is located in the includes directory.

 

Jack

 

Found it Jack!

 

I have pasted the configure.php file below without the database passwords:

 

<?php

 

define('HTTP_SERVER', 'http://snoringshop.co.uk');

define('HTTPS_SERVER', 'http://snoringshop.co.uk');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'http://snoringshop.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'http://snoringshop.co.uk');

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

define('DIR_FS_CATALOG', '/home/snorings/public_html/');

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

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

//// BOF phpBB2 Integration v1.3

// define phpbb2 path

define('DIR_WS_PHPBB', '/phpbb2/');

//// EOF phpBB2 Integration v1.3

?>

I have built an online store solely with the help of this forum.

  • 2 weeks later...
Posted
Can anyone help out please?

 

No one in this forum will help with that. The oscommerce session system has been hacked about.

 

Sessions are showing as ?sid=xxxx this is non standard you will have to contact whoever broke it, do it yourself, or hire a professional to do it for you.

Posted

Change both of your HTTP*_COOKIE_DOMAIN entries to be snoringshop.co.uk and that should get you taken care of.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Try:

define('HTTP_COOKIE_DOMAIN', 'snoringshop.co.uk');

 

Or:

define('HTTP_COOKIE_DOMAIN', '.snoringshop.co.uk');

 

And:

define('HTTP_COOKIE_PATH', '');

 

Or:

define('HTTP_COOKIE_PATH', '/');

  • 4 weeks later...
Posted

Thanks Jack_msc, Daemonj and oschellas for all your help. I have finallly managed to get the thibng working!

 

Thanks again.

 

Peter.

I have built an online store solely with the help of this forum.

Posted

Hi all need some more help on this one :o

 

I have noticed that when I goto my website www.snoringshop.co.uk, the SID shows up initially and then disappears when I click on another product. Can anyone please advice how I can totally get rid of the SID.

 

Sorry to be a pain again.

 

If it helps, I have added the configure file below:

 

<?php

 

define('HTTP_SERVER', 'http://www.snoringshop.co.uk');

define('HTTPS_SERVER', 'http://www.snoringshop.co.uk');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'snoringshop.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'snoringshop.co.uk');

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

define('DIR_FS_CATALOG', '/home/snorings/public_html/');

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

define('DB_SERVER_PASSWORD', 'XXXXXX);

define('DB_DATABASE', 'snorings_snoringshop');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

//// BOF phpBB2 Integration v1.3

// define phpbb2 path

define('DIR_WS_PHPBB', '/phpbb2/');

//// EOF phpBB2 Integration v1.3

?>

 

Peter.

I have built an online store solely with the help of this forum.

Archived

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

×
×
  • Create New...