perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remi Fasol <re_mi...@yahoo.com>
Subject Re: upgrading from v1.95
Date Tue, 12 Aug 2003 04:24:06 GMT
hello.

i entered this code almost exactly as written, and for
some reason, SessionQuery is not being turned off for
non-Mozilla user agents.

is there anything else i can try (or perhaps a
suggested technique for tracking down why this
happens)?

thanks,
remi

--- Josh Chamas <josh@chamas.com> wrote:


> # httpd.conf
> PerlRequire /path/to/startup.pl
> PerlInitHandler My::InitHandler
> 
> # startup.pl
> package My::InitHandler;
> use Apache;
> 
> sub handler {
>    my $r = shift;
> 
>    unless($r->header_in('User-Agent') =~
> /^Mozilla/)) {
>       $r->dir_config('SessionQuery', 'Off');
>       # you might also set other SessionQuery*
> params to Off here too...
>    }
> 
>    200;
> }
> 
> 1;
> 
> If you wanted to skip the startup.pl file, you could
> move this code directly
> to your httpd.conf file in <Perl> sections, or you
> could nicely package this
> handler as a real perl module which you PerlModule
> from httpd.conf.
> 

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message