in reply to Using CGI:App and Session plugin - double DB connection fix.
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 { ... } } ] );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using CGI:App and Session plugin - double DB connection fix.
by techcode (Hermit) on Sep 15, 2005 at 07:42 UTC | |
by cees (Curate) on Sep 15, 2005 at 12:54 UTC |