View Single Post
Old 10-05-2005, 06:02 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
PhpDig indexes content from a site that a r****m surfer can see. There are the following options in the config file to remove session IDs from URLs, but this is for any session ID that get assigned to PhpDig as it crawls a site:
Code:
define('PHPDIG_SESSID_REMOVE',true);
define('PHPDIG_SESSID_VAR','PHPSESSID,s');
osCommerce looks like it uses osCsid as the variable name for its session ID, but PhpDig isn't going to know about the session ID unless it is passed in a form or query string. You could try setting a hidden field in the PhpDig search form:
Code:
<input type="hidden" name="osCsid" value="osCommerce variable containing session ID goes here">
And then clean $_REQUEST['osCsid'] in search.php, pass the cleaned variable into the phpdigSearch function, and then append the cleaned variable to link variables in the phpdigSearch function.

This all assumes that your users search from your osCommerce pages. As soon as a user does a direct search, there won't be a osCsid session ID around to pass into PhpDig unless you can set osCommerce to dump its session ID in a cookie.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote