my $dbh = C4::Context->dbh;
my $session;
if ($storage_method eq 'mysql'){
- $session = new CGI::Session("driver:MySQL", $sessionID, {Handle=>$dbh});
+ $session = new CGI::Session("driver:MySQL;serializer:yaml", $sessionID, {Handle=>$dbh});
}
elsif ($storage_method eq 'Pg') {
- $session = new CGI::Session("driver:PostgreSQL", $sessionID, {Handle=>$dbh});
+ $session = new CGI::Session("driver:PostgreSQL;serializer:yaml", $sessionID, {Handle=>$dbh});
}
else {
# catch all defaults to tmp should work on all systems
- $session = new CGI::Session("driver:File", $sessionID, {Directory=>'/tmp'});
+ $session = new CGI::Session("driver:File;serializer:yaml", $sessionID, {Directory=>'/tmp'});
}
return $session;
}
unless ( eval { require ZOOM } ) {
push @missing, { name => "ZOOM" };
}
+ unless ( eval { require YAML::Syck } ) {
+ push @missing, { name => "YAML::Syck" };
+ }
unless ( eval { require LWP::Simple } ) {
push @missing, { name => "LWP::Simple" };
}