Page 1 of 1
Search Engines and "?PHPSESSID=" results
Posted: Thu Dec 01, 2005 9:55 am
by tsg
Hello all,
I see a lot of my sites pages results in some search engines with the ?PHPSESSID= at the end of the page. Is there any way to make it so when the search engine spiders, it omits the ?PHPSESSID=?
Thanks,
Tim
Posted: Thu Dec 01, 2005 10:11 am
by trukfixer
Code: Select all
ini_set("session.use_trans_sid" ,"1");
http://us3.php.net/manual/en/ref.session.php
php.net wrote:
session.use_trans_sid boolean
session.use_trans_sid whether transparent sid support is enabled or not. Defaults to 0 (disabled).
Note: For PHP 4.1.2 or less, it is enabled by compiling with --enable-trans-sid. From PHP 4.2.0, trans-sid feature is always compiled.
URL based session management has additional security risks compared to cookie based session management. Users may send a URL that contains an active session ID to their friends by email or users may save a URL that contains a session ID to their bookmarks and access your site with the same session ID always, for example.
Posted: Thu Dec 01, 2005 10:38 am
by tsg
Thanks!