Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google_Bot still generates osCsid


Mort-lemur

Recommended Posts

Hi,

 

I have prevent spider sessions set to True.

 

I have installed the updated robots.txt file suggested by Spooks in leiu of sidkiller

 

and yet GOOGLE_BOT still manages to generate an osCsid

 

What else can I do to prevent this?

 

Thanks

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

Hi,

 

I have prevent spider sessions set to True.

 

I have installed the updated robots.txt file suggested by Spooks in leiu of sidkiller

 

and yet GOOGLE_BOT still manages to generate an osCsid

 

What else can I do to prevent this?

 

Thanks

 

If prevent spider sessions is set to true and you have an updated spiders.txt then google will not be able to create a session.

 

You need recreate session set to true as well.

 

It may take some time all your indexed pages to clean up though so perhaps you are seeing legacy links.

Link to comment
Share on other sites

You may want to do the following, which will clean up your indexed pages by 301 redirecting bots with a session_id attached: -

 

Find in catalog/includes/application_top.php ..

 

// currency
 if (!tep_session_is_registered('currency') || isset($HTTP_GET_VARS['currency']) || ( (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && (LANGUAGE_CURRENCY != $currency) ) ) {

 

 

Add immediately ABOVE

 

 if ( $spider_flag == true ) {
 if ( false !== strpos( $_SERVER['REQUEST_URI'], tep_session_name() ) ) {
  $location = tep_href_link( basename( $_SERVER['SCRIPT_NAME'] ), tep_get_all_get_params( array( tep_session_name() ) ), 'NONSSL', false );
  header( "HTTP/1.0 301 Moved Permanently" ); 
  header( "Location: $location" );
  exit;
 }
}

Link to comment
Share on other sites

Thankyou.

 

Done the changes as you suggested.

 

Many Thanks for your help.

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...