note 51548 deleted from ref.session by betz

From: Date: Fri, 08 Jul 2005 08:54:09 +0000
Subject: note 51548 deleted from ref.session by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-91652@lists.php.net to get a copy of this message
Note Submitter: wolfpack ---- Search engines in general don't support cookies, and they don't do well with SIDs in the query string. If you use sessions, especially URL-based sessions, and want your site to be search engine friendly, the following works well: <?php $br = get_browser(); if (!($br->crawler)) { // any session-related code goes here } else { // whatever your page needs to work without sessions } ?> To use the function get_browser() you may need to install browscap.ini. See the documentation for get_browser() for more info.

« previous php.notes (#91652) next »