Page 1 of 1

PHP Session IDs and search engines

Posted: Wed Jun 22, 2005 2:06 pm
by sara1969
Hi all. I'm having a problem and was hoping someone could offer some advice? I have a site that I've implemented a PHP Login Script on, to grant/restrict access to specific pages. It works well.

Since this, I've tried to implement 3 different search engines on my site.. and they all have done the same thing. They find result sets for the PHP session ID. I don't want these sessions to be indexed and can't seem to stop it from happening.

Example:
At http://bestof417.com/search.php, I type Dining in the Search Form.
I get 20+ results, but only about 6 or 7 are valid.

I get both, a valid returned result of:
http://bestof417.com/
and a path which shouldn't be reported as:
http://bestof417.com/index.php?PHPSESSI ... 5e2e645585

There is URL after URL of these PHPSESSID's.

Any idea why this might be happening?
Where are these session ID's stored? I can't find them anywhere.
Thx!
Sara

Posted: Thu Jun 23, 2005 6:25 am
by CoderGoblin
Check the value of session.use_trans_sid in your php.ini file.

You may also want to look at the Session Overview

Hope that helps.