I am trying to remove OSCSID id from url in osCommerce but didn't able to success.
Below is my code for that.
define('HTTP_COOKIE_DOMAIN', 'http://www.domainname.com');
define('HTTPS_COOKIE_DOMAIN', 'http://www.domainname.com');
Is there any other way to remove this id from URL?
Here is the solution
1) Open ".htaccess" file. (you can find this file on root directory of the site.)
2) add following line at the end of file
Actually above line changes PHP version of your site. I change my site PHP version into 5.2 and oscsid from web site all urls will automatically disappear.
If PHP5.2 version is not working for your site. you can also switch into other PHP versions for using these lines one by one
To switch to PHP 4.0:
To switch to PHP 5.0:
To switch to PHP 5.1:
To switch to PHP 5.2:
To switch to PHP 5.3:
To switch to PHP 5.4:
To switch to PHP 5.5:
To switch to the secure PHP 5.2 with Suhosin patch:
To switch to PHP 5.6:
To switch to PHP 7:
To switch to PHP 7.1:
Try your luck and check which version is suitable for you.
I have found the solution for above my question.
For removing OSCSID from site url, kindly follow below steps.
Go to the back-end section -> configuration -> session -> Force Cookie Use -> Enable this option and check at front-end side. OSCID will be removed from URL.
Note: You cannot use shared ssl with Force Cookies on.