2
   

kill session ID not bbphp

 
 
Post: # 814,244
View Profile forte
 
Reply Thu 29 Jul, 2004 05:45 am
would this kill the SID for search engines or would I need some more code before the session_start

Code:if(!$HTTP_USER_AGENT) $HTTP_USER_AGENT = getenv('HTTP_USER_AGENT');
if(!preg_match("/Googlebot|msnbot|Slurp|Fast|slurp\@inktomi\.com;/",$HTTP_USER_AGENT))

session_start();

if ($setlang)
{
$la = $setlang;
session_register("la");
}

$fp = 1;


thanks

Barrie,
 
  1  
Reply Thu 29 Jul, 2004 12:46 pm
I am not sure what that code does in the context you provide. It clearly aims to target only specific bots but based merely on the code (and without looking at the surrounding phpBB code I can't tell you if it works.

Why are you considering it? If you use my mod those spiders already get no sessions.
0 Replies
 
Post: # 815,195
View Profile forte
 
  1  
Reply Thu 29 Jul, 2004 02:01 pm
Your MOD is for phpBB this is for a shopping cart

Barrie,
0 Replies
 
  1  
Reply Thu 29 Jul, 2004 02:06 pm
Ok, that explains why the code wasn't making sense to me.

Without familiarity with the code it will be applied to, it seems like what it does is remove session IDs for certain user-agents that are from famous search engines.
0 Replies
 
 

Related Topics

I'm the developer - Discussion by Nick Ashley
how to earn money in internet - Discussion by rizwanaraj
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
mod rewrite for a different theme? - Discussion by etali
 
  1. able2know
  2. » kill session ID not bbphp
Copyright © 2009 Horizontal Verticals :: Page generated in 0.33 seconds on 11/22/2009 at 08:16:25 Top End