2
   

kill session ID not bbphp

 
 
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,
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 2 • Views: 1,610 • Replies: 3
No top replies

 
Craven de Kere
 
  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
 
forte
 
  1  
Reply Thu 29 Jul, 2004 02:01 pm
Your MOD is for phpBB this is for a shopping cart

Barrie,
0 Replies
 
Craven de Kere
 
  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

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
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
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » kill session ID not bbphp
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/26/2024 at 03:45:00