From 00adf3d9af1c13fd0edeb5500e0bb3ae2aaf38e6 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 4 Jun 2008 11:53:46 +0200 Subject: [PATCH] Bugfix : generating session id on some systems was not defined Explicitly naming the method to generate id is required on some systems (SUN 4) Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 4b21243058..355633600c 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1118,14 +1118,14 @@ sub get_session { my $dbh = C4::Context->dbh; my $session; if ($storage_method eq 'mysql'){ - $session = new CGI::Session("driver:MySQL;serializer:yaml", $sessionID, {Handle=>$dbh}); + $session = new CGI::Session("driver:MySQL;serializer:yaml;id:md5", $sessionID, {Handle=>$dbh}); } elsif ($storage_method eq 'Pg') { - $session = new CGI::Session("driver:PostgreSQL;serializer:yaml", $sessionID, {Handle=>$dbh}); + $session = new CGI::Session("driver:PostgreSQL;serializer:yaml;id:md5", $sessionID, {Handle=>$dbh}); } else { # catch all defaults to tmp should work on all systems - $session = new CGI::Session("driver:File;serializer:yaml", $sessionID, {Directory=>'/tmp'}); + $session = new CGI::Session("driver:File;serializer:yaml;id:md5", $sessionID, {Directory=>'/tmp'}); } return $session; } -- 2.39.5