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

Reply via email to