in reply to storing DBI database handle in CGI::Session object ?

No, you can not keep a persistent database handle using CGI. The code you are looking at is for storing session information in a database, not for storing a database handle. You could keep a persistent connection if you use mod_perl and get your program to work under Apache::Registry and use Apache::DBI...but you really ought to figure out if it's really worth the trouble or if you're just prematurely optimizing.
  • Comment on Re: storing DBI database handle in CGI::Session object ?