[nycphp-talk] Robot Sessions
David Sklar
sklar at sklar.com
Mon Mar 29 17:41:08 EST 2004
> Is there a (good) way to allow robots to navigate your site, but not
> issue them a session?
Short but not the world's most efficient way to do it:
if (! preg_match('/googlebot/i', $_SERVER['HTTP_USER_AGENT'])) {
session_start();
}
You probably want to expand that regex to account for all the robots you
know/care about.
David
More information about the talk
mailing list
Automatic Email Organization without missing anything!