Thread: session_start
View Single Post
Old 12-29-2005, 08:36 AM   #2
digitalbart2k
Green Mole
 
Join Date: Jan 2004
Posts: 3
Was able to get it working

In case anyone runs into this problem, I was able to get this work by by putting the session_start in a if statement based on the useragent. I got the code from this link below and below that is the code I used.

exclude sessions

PHP Code:
$spiders = array("Googlebot","WebCrawler","Slurp","Fast","Scooter","Fluid","Zeal","Wget","archiver","ZyBorg ","Mantra","MSN","scrub","Teoma","Jeeves","msnbot","phpdig");


foreach(
$spiders as $Val

if (
eregi($Val$HTTP_SERVER_VARS['HTTP_USER_AGENT'])) 

 
$spider_count++; 


if (
$spider_count == "0") { 

session_start();
}



digitalbart2k is offline   Reply With Quote