Posted on 2008-02-04 14:57:54-08 by justice8
Lazy loading issue
Hi, given example (init session is cgiapp_init sub) is maybe wrong and confusing, as this callback is call EVERY time CGI::App object is initialised, not the first time a CGI::App is used, leading to re-initialize session on each runmode, or use only default settings !

It could be usefull to have a method which tell us if a session has been loaded or if a new one is created (there is a "private" variable called _STATUS in object, set to 3 if it's a new session, and 2 if it has been loaded).

Regards.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.