in reply to Session->load and CGI::Application

CGI::Application::Plugin::Session uses 'lazy loading'. In other words it will not create a session until you actually need it. The advantage of this is you don't have to 'load' a session object, it will do this for you.

Replies are listed 'Best First'.
Re^2: Session->load and CGI::Application
by knell (Initiate) on Jun 10, 2008 at 12:52 UTC
    as I wrote above, cgiapp plugin "creates" the session always. For example, if user simply view start page of site, the plugin will create a session object and save it in DB. If user not login and simply browse site the plugin will create sessions objects. But I want to create session only when user has logged in. I do not need a session object when user simply browse site.