note 29583 deleted from function.stristr by nlopess
| From: | nlopess@php.net | Date: | Sat, 12 Mar 2005 22:58:17 +0000 |
| Subject: | note 29583 deleted from function.stristr by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86339@lists.php.net to get a copy of this message | ||
Note Submitter: radu at u-zine dot com
----
Google and other search spiders don't like sessions so you you can control this using stristr
function.
if (!stristr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot') &&
!stristr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'InternetSeer') &&
!stristr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'slurp@inktomi.com;')){
session_start();
}