I did post a question but i did not recognize the answer (due to "my" spam???). Looking through google i've found that someone has answered me, asking for more details.
Here there are: mod_perl 2.0 (1.999??) and perl 5.81 My problem (comproved today) is that %ENV hash is not reseted on each new request. As i use the HTTP_COOKIE to identify the users identity, it happens that after i log in one PC with my id-pass, looking (just after) at other pc i can see as if i was me (but in other pc). Reloading the page returns things to normality, but it is very annoying. My loved person-who-has-answered has said maybe the use of global variables are the responsibles. Here is the (simplified) code, you can see that ref hash is reseted before ... now i'm thinking ... i am reseting the var, yes, but i'm not reseting the refs copy, so it is maintaing the old value ... i now really think this is the mistake, i put (anyway) the code, but i will test this. As this question maybe is already solved, i ask two more questions: Is $r->subprocess_env->clear; needed in mod_perl 2 ?? Is there any way to acced to HTTP_COOKIE without the ENV hash? throw $r for example? $info = $Generic -> info; ... sub info { my $info = {}; no warnings; $info->{cookie} = $ENV{HTTP_COOKIE}; return $info; } What i'm going to do my $info = {}; $Generic-> info($info); ... sub info { my ($info) = @_; no warnings; $info->{cookie} = $ENV{HTTP_COOKIE}; } gerard uolaquetalestem wrote: > Hi to comunity, i'm developing some scripts (handlers) that need (or that's > what i think) to fill the ENV hash, so i can take the cookie data. Which mod_perl version are using? Always include at least that information in your questions. Can we summarize your problem as %ENV getting a sticky value of the previously set HTTP_COOKIE value? It's supposed to be reset on each new request. It's more likely that you have used some global variables and haven't initialized them, so they persist across the requests. If you can show a *short* code sample you are having a problem with, it'll be easier for us to understand what your problem is. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas at stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html