httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Viollat <mail...@rtcw.com.fr>
Subject Re: [users@httpd] SetEnvIf & SESSION_USE_TRANS_SID=0
Date Tue, 23 Oct 2007 08:47:45 GMT

Thanks for your answer! I tried but no such success. I also tried to match Mozilla User-Agent
for debugging, but it looks like the setting which is passed to SetEnvIf is totally ignored.

Is there a way to check the content of a variable through a .htaccess or apache's configuration
file ? Something like "if MyVar = foobar then apply_this_setting" ?

Thanks.


On Tue, 23 Oct 2007 04:15:25 -0400, solprovider@apache.org wrote:
> Check the User-Agent appearing in your logs.  The regexp would not
> match Googlebot's User-Agent from the logs on my server:
> Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
> 
> Try:
> SetEnvIf User-Agent "(.*)Googlebot(.*)" SESSION_USE_TRANS_SID=0
> 
> solprovider
> 
> WARNING: Code was written freehand, is completely untested, and may
> cause catastrophic failures.  Use at your own risk.
> 
> 
> On 10/22/07, Sylvain Viollat <mailing@rtcw.com.fr> wrote:
>> We have a website which works with session.use_trans_sid set to On.
> Everything works just fine, but when googlebot comes on the website and
> does its job, it's also getting the php's session id in the URL. I've
> search a lot about this problem and one of the solution which could do
> what I want, disabling session.use_trans_sid if User-Agent is ^googlebot,
> doesn't work. Here is what I tried, in a .htaccess file :
>>
>> SetEnvIf User-Agent "^googlebot" SESSION_USE_TRANS_SID=0
>> - EnvVar is properly set up but has no effect if I check a phpinfo
> (session.use_trans_sid still to On)
>>
>> I can't disable session.use_trans_sid for the whole website, but only if
> googlebot is coming.
>> Sylvain, France
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message