good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: mod_perl variable persistence across request and/or sessionby zwon (Abbot) |
on Oct 01, 2011 at 16:41 UTC ( [id://929047]=note: print w/replies, xml ) | Need Help?? |
If help i can post the code. Yes, you should post the code, it would help. There maybe several reasons why this happens, but the main is that apache normally starts several worker processes. When you send request to apache it is handled by one of workers, and any variable changed by this worker will be changed only for this worker, it doesn't affect other processes. If you want to maintain variable common for all processes you should keep it in shared memory or in database
In Section
Seekers of Perl Wisdom
|
|