The nicest way would be to change the MySQL driver for CGI::Session so that it can accept a reference to a sub (ie a closure) instead of just a $dbh.
$self->session_config( CGI_SESSION_OPTIONS => [ "driver:MySQL;serializer:Storable", $self->query, { Handle => sub { ... } } ] );
In reply to Re: Using CGI:App and Session plugin - double DB connection fix.
by cees
in thread Using CGI:App and Session plugin - double DB connection fix.
by techcode
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |