Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Object does not exist in the data store at /usr/local/lib/perl5/site_perl/5.8.0/ Apache/Session/Store/DBI.pm line 93.
The docs are sketchy, so I'm not sure what object it means. What am I missing? The code follows:TIA#!/usr/local/bin/perl use strict; use warnings; use DBI; use DBD::mysql; use Apache::Session::MySQL; use Apache::Session::Generate::MD5; use Apache::Session::Store::MySQL; use Data::Dumper; my $dsn = "DBI:mysql:database=$db:host=$host"; my $id = Apache::Session::Generate::MD5::generate(); my $store = new Apache::Session::Store::MySQL; print Dumper( $id, $store ); #if you want Apache::Session to open new DB handles: my %session_hash; tie %session_hash, 'Apache::Session::MySQL', $id, { DataSource => 'dbi:mysql:$db', UserName => $user, Password => $password, LockDataSource => 'dbi:mysql:$db', LockUserName => $user, LockPassword => $password, }; print Dumper( \%session_hash );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem using apache::session::store::mysql
by perrin (Chancellor) on May 24, 2004 at 22:25 UTC | |
by Anonymous Monk on May 25, 2004 at 15:21 UTC | |
by perrin (Chancellor) on May 25, 2004 at 17:04 UTC | |
by Anonymous Monk on May 25, 2004 at 17:41 UTC |