Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osCsid in URL


rudolfl

Recommended Posts

Hi all,

 

How does one gets rid of osCsid in URL?

I have cookie domain set properly.

 

If cookie is already there, ocCsid does not appear in URL.

The issue is first visit to site (this is how bots and customers behave). ocCsid is present in URL. In order to get rid of it, I have to manually remove it from URL.

So, it seems that function that generates URLs keeps copying the ocCsid in URL even after cookie is set.

 

Is there an official way to fix it?

 

site: www.fascinators.com.au

version 2.3.3.4

 

Thanks,

Rudolf

Link to comment
Share on other sites

1. Set Force Cookies to true. (osCsid in url not used, users with browsers that does not support cookies will not be able to buy from your shop)

 

Or

 

2. keep it as you have it but make sure that Prevent Spider Sessions is set to true. (makes it so bots does not get osCsid)

Link to comment
Share on other sites

Thanks, Nick.

 

I wonder how many people block cookies those days.

 

As for prevent spider sessions -- it is on, but that relies on the spider list being up-to-date.

 

Code change to support it should be minimal -- I beleive osCsid gets inserted by tep_get_all_get_params() function in includes/functions/general.php

It should just check if cookie exists and exclude osCsid from list if it is set.

This behaviour should also be controlled by config key.

 

Rudolf

Link to comment
Share on other sites

@@rudolfl

 

I wonder how many people block cookies those days.

It doesn't matter, in my opinion. If there is only one person that does and that one person decides to become your best customer ever, you will lose him by forcing cookies.

 

I suggest you install Ultimate SEO or SEO 5 to rewrite the url's. Both will remove the SID's.

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

I have one of the SEO add-ons installed and it does not help (not 100% sure what version, though). First access to site keeps osCsid in URL.

 

I will try my proposed changes over weekend and will let you know.

 

Rudolf

Link to comment
Share on other sites

That is normal. The SID is displayed on the first page but not any others for that session. It isn't anything to be concerned about.

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

Archived

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

×
×
  • Create New...