CGI-Application-Plugin-Session - Lazy loading issue

Posted on Mon Feb 4 16:57:54 2008 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.
Write a response