Forum Moderators: open
a simple way would be
if(is_bot($HTTP_USER_AGENT))
{
session_start();
}
where is_bot is a function which returns true or false depending on if its a bot or not.
That is a custom written function .. and should be some thing like (just off the top of my head)
function is_bot($user_agent)
{
if(ereg("bot",$user_agent))
{
return true;
}
elseif("scooter",$user_agent)
{
return true;
}
elseif{ add more } //more blocks like above
else
{
return false;
}
}
if I remember it right .. you wanted to get rid of sessionid from url?