I just upgraded from Apache::Session 1.03 to 1.52, resulting in breaking all
our dependent code.
The problem is that we use our own package which inherits Apache::Session as
follows:
---
package MPL::NullSession;
use strict;
use vars qw(@ISA $VERSION);
$VERSION = '1.00';
@ISA = qw(Apache::Session::MySQL); # was Apache::Session
use Apache::Session;
use Apache::Session::NullLocker;
use Apache::Session::MySQL; # was Apache::Session::DBIStore
sub get_object_store {
my $self = shift;
return new Apache::Session::MySQL $self;
# was Apache::Session::DBIStore
}
sub get_lock_manager {
my $self = shift;
return new Apache::Session::NullLocker $self;
}
# yay
1;
---
We tie using:
tie %session, 'MPL::NullSession', $self->{SESSION_ID}, $dbinfo
-where $dbinfo is a hashref
This no longer works and here's the error message from Apache:
Can't connect( HASH(0x86e338c)), no database driver specified and DBI_DSN
env var not set at
/usr/lib/perl5/site_perl/5.005/Apache/Session/Lock/MySQL.pm line 36
Any help is appreciated. Please reply to my email address as well.
Thank you.