my $session = OpenSession($dbh,$tsid); and my $session = new CGI::Session("driver:MySQL", $sid, {Handle=>$dbh, LockHandle=>$dbh})