perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew O'Brien" <andr...@oriel.com.au>
Subject RE: EMBPERL_SESSION_HANDLER_CLASS = no
Date Sun, 02 Dec 2007 21:51:53 GMT

Hi Jon,

> I've read up on this a bit, and it seems that I should be 
> able to do this:
> 
> $ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';
> 
> In my CGI or at least set the environment variable for apache 
> and put this is my httpd.conf
> 
> PassEnv EMBPERL_SESSION_HANDLER_CLASS
> 
> Neither of these work. I understand that putting the 
> following in my httpd.conf should work assuming that I've 
> loaded mod_embperl & mod_perl:
> 
> EMBPERL_SESSION_HANDLER_CLASS no
> 
> However, *I don't have mod_perl*. Is there any way to turn 
> this message off without mod_perl?

If you're definitely not running under mod_perl (or Apache::Registry
etc) then does putting the the environment setting in a BEGIN block
help?

ie
BEGIN {
  $ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';
}

...
use Embperl;
...

My only worry would be making sure you are definitely not running in an
environment that is caching any module compilations.

There are several example cgi handlers that come with the Embperl
distribution - it would be worth your while to have a look at these to
see how Embperl recommends you pass things like this through.

Cheers,

Andrew


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


Mime
View raw message