PHP Session IDs and search engines

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sara1969
Forum Newbie
Posts: 1
Joined: Wed Jun 22, 2005 2:01 pm

PHP Session IDs and search engines

Post 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
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post 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.
Post Reply