Mailing List Archive

[BUG] HTML::Embperl::Session with Apache::Session v1.52
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
Re: [BUG] HTML::Embperl::Session with Apache::Session v1.52 [ In reply to ]
Subject: [BUG] HTML::Embperl::Session with Apache::Session v1.52


Hi,
>
> I having problems using HTML::Embperl::Session with the lastest version of
> Apache::Session (1.52)
>

Before you say otherones software haveing a BUG read the DOCs (or the
mailing list archive)!!

http://perl.apache.org/embperl/INSTALL.pod.1.html :

NOTE 1: (only Embperl-1.2b1 or higher) For using session handling you need
Apache::Session-0.17 or higher. If possible use Apache::Session 1.00.
Currently Apache::Session 1.50 or higher is not supported. (Coming soon)

Gerald