Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: mod_perl variable persistence across request and/or session

by bluescreen (Friar)
on Oct 01, 2011 at 19:21 UTC ( #929060=note: print w/ replies, xml ) Need Help??


in reply to mod_perl variable persistence across request and/or session

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.


Comment on Re: mod_perl variable persistence across request and/or session

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-01-26 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (186 votes), past polls