Hi,
I having problems using HTML::Embperl::Session with the lastest version of
Apache::Session (1.52)
CODE:
#!/usr/bin/perl
use HTML::Embperl::Session;
tie %hash, 'HTML::Embperl::Session', undef, {
object_store => 'Apache::Session::Store::MySQL',
lock_manager => 'Apache::Session::Lock::MySQL',
DataSource => 'dbi:mysql:tsweb',
UserName => 'xxxxxxxxx',
Password => 'xxxxxxxxx',
LockDataSource => 'dbi:mysql:tsweb',
LockUserName => 'xxxxxxxxx',
LockPassword => 'xxxxxxxxx'
};
OUTPUT:
Can't locate object method "generate_id" via package "HTML::Embperl::Session" at
/usr/lib/perl5/site_perl/5.6.0/i686-linux/HTML/Embperl/Session.pm line 184.
DISCUSSION:
I think the problem is that the generate_id function was moved to
Apache::Session::Generate::MD5::generate, and the API was changed so that
you have to write $self->{generate} = \&Apache::Session::Generate::MD5::generate;
See Apache::Session::MySQL.pm for an example on how to do this.
Is this a known bug? I can submit a patch if there is not already one.
Thanks,
TJ Mather
I having problems using HTML::Embperl::Session with the lastest version of
Apache::Session (1.52)
CODE:
#!/usr/bin/perl
use HTML::Embperl::Session;
tie %hash, 'HTML::Embperl::Session', undef, {
object_store => 'Apache::Session::Store::MySQL',
lock_manager => 'Apache::Session::Lock::MySQL',
DataSource => 'dbi:mysql:tsweb',
UserName => 'xxxxxxxxx',
Password => 'xxxxxxxxx',
LockDataSource => 'dbi:mysql:tsweb',
LockUserName => 'xxxxxxxxx',
LockPassword => 'xxxxxxxxx'
};
OUTPUT:
Can't locate object method "generate_id" via package "HTML::Embperl::Session" at
/usr/lib/perl5/site_perl/5.6.0/i686-linux/HTML/Embperl/Session.pm line 184.
DISCUSSION:
I think the problem is that the generate_id function was moved to
Apache::Session::Generate::MD5::generate, and the API was changed so that
you have to write $self->{generate} = \&Apache::Session::Generate::MD5::generate;
See Apache::Session::MySQL.pm for an example on how to do this.
Is this a known bug? I can submit a patch if there is not already one.
Thanks,
TJ Mather