Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

CGI::Application - One time setup

by Anonymous Monk
on Apr 09, 2013 at 13:34 UTC ( #1027736=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

So I'm working on this CGI::Application, In cgiapp_init the have some database and session things setup. I read the docs and thought this was so that this work was done only once per session. To test this I added a warn "cgiapp_ini - this part runs once";, but notice that each time I click a link this shows up in the server log. Can someone please explain how, in CGI::Application to run code once per visit, so not once per click?

Comment on CGI::Application - One time setup
Re: CGI::Application - One time setup (scope/reuse/persistence)
by Anonymous Monk on Apr 09, 2013 at 13:45 UTC
      Amazing, this and this -> http://www.cgi-app.org/index.cgi?FastCGI solve it for me, we don't have mod_perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-09-20 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls