|XP is just a number|
mod_cgid, CGI::Fast share values between different scripts?by Anonymous Monk
|on Oct 09, 2012 at 05:48 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
i run an apache2 server with mod_fcgid and like to have a var i like to share between different scripts. let's assume i have this script:
this script is named a.cgi AND b.cgi. when i call it with http://url/a.cgi it will increment up the var $x on each instance of a.cgi, the same for b.cgi. but i like that the same variable $x (address in the shared mem or wherever) is incremented regardless if i call a.cgi or b.cgi. they should print out the value of the same address of $x.
this is for sharing database handlers as well as ssl session contexts and other informations which should be provided among different scripts.
i hope the question is clear? how can i manage to share persistent vars between instances of different scripts and not only between instances of the same script in a mod_fcgid / FCGI / CGI::Fast environment ?
greetings & thanks