in reply to Using CGI:App and Session plugin - double DB connection fix.

I'm sure you're aware that the session can be stored in files, not necessarily in db. If you do want to store it in db, then you will need the database handle anyway, I'd say create the handle in setup(), store it, then directly use it in the session and in any run-modes, just close it in teardown.
  • Comment on Re: Using CGI:App and Session plugin - double DB connection fix.

Replies are listed 'Best First'.
Re^2: Using CGI:App and Session plugin - double DB connection fix.
by techcode (Hermit) on Sep 14, 2005 at 18:22 UTC
    I am using that now - but then I connect to DB on each request for my site ...