|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: mod_perl variable persistence across request and/or sessionby bluescreen (Friar) |
| on Oct 01, 2011 at 19:21 UTC ( #929060=note: print w/ replies, xml ) | Need Help?? |
|
Hi, I think the problem is that Apache fires up multiple threads so each thread has its own copy of the variable every request the variable gets updated but in a different threads if you refresh enough you'll see the variable updated. Another caveat is that every X request Apache terminate the thread and fires a new one so the variables will be lost. My advice is to use some sort of storage to save the state.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||