You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Thomas Glass <gl...@yahoo.com> on 2000/05/01 21:13:58 UTC

environment

Hi everyone,I'm having a problem and I wonder if you
guys couldhelp me out:
I have a script whose behaviour depends on the main
path environment variable (and a cookie). The problem
is that after a couple of reloads, the environment
variables seem to get cached and the result comes out
-obviously- wrong. I guess my question is:
Is there any way to ensure that the script will get
the right environment variables? maybe something in
the apache configuration file?

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

Re: environment

Posted by "Ken Y. Clark" <kc...@boston.com>.
On Mon, 1 May 2000, Thomas Glass wrote:

> Hi everyone,I'm having a problem and I wonder if you
> guys couldhelp me out:
> I have a script whose behaviour depends on the main
> path environment variable (and a cookie). The problem
> is that after a couple of reloads, the environment
> variables seem to get cached and the result comes out
> -obviously- wrong. I guess my question is:
> Is there any way to ensure that the script will get
> the right environment variables? maybe something in
> the apache configuration file?
> 

i don't like to rely on %ENV in a mod_perl environment.  there are just so
many better ways of doing this using the Apache API we have....but:

http://perl.apache.org/guide/control.html#Wrapper_to_Emulate_the_Server_En

i'd recommend doing things w/PerlSetVar and such:

http://perl.apache.org/guide/config.html#PerlSetVar_PerlSetEnv_and_PerlP

ky