At 10:43 AM +0000 11/22/01, Jonathan M. Hollin wrote: >Thank you everyone for the quality of help I've so far received and your >rapid responses. However... :-(
At the rist of making a shameless plug, you can visit http://www.kitebird.com/mysql-perl/ and grab the webdb source distribution there. This accompanies the book for which the aforementioned URL is the home site. Said book has a chapter on sessions focusing on Apache::Session, so you may find the example scripts useful for helping you solve your problem. > >My code now includes: > >35: # Session handler... >36: my %session; undef my $session_id; >37: use Apache::Session::MySQL; >38: tie %session, 'Apache::Session::MySQL', $session_id, >39: { DataSource => 'dbi:mysql:sessions', UserName => 'db_user', Password >=> 'secret' }; >40: $session_id = "session_id=$session{_session_id};"; > >I am using Apache-Session v1.54. > >The above code generates the following error: > >[Thu Nov 22 10:31:38 2001] [error] PerlRun: `Can't connect( >HASH(0xbdcf54)), no database driver specified and DBI_DSN env var not set at >E:/Apache/site/lib/Apache/Session/Lock/MySQL.pm line 36 (in cleanup) >Can't connect( HASH(0x47e2f14)), no database driver specified and DBI_DSN >env var not set at E:/Apache/site/lib/Apache/Session/Lock/MySQL.pm line 36' > >So, as you can see, I've moved on a little - but still don't have a working >session handler. Any offers? > >Note: I know how boring it is to keep reading the same thread - I'll drop >it if I don't solve this today. > >Kindest regards, > >Jonathan M. Hollin - WYPUG Co-ordinator >West Yorkshire Perl User Group >http://wypug.pm.org/ > >:: -----Original Message----- >:: From: Tatsuhiko Miyagawa [mailto:[EMAIL PROTECTED]] >:: Sent: 22 November 2001 04:34 >:: To: [EMAIL PROTECTED] >:: Cc: mod_perl Mailing List >:: Subject: Re: Apache::Session Problem -- Addendum >:: >:: >:: On Wed, 21 Nov 2001 23:23:33 -0000 >:: "Jonathan M. Hollin" <[EMAIL PROTECTED]> wrote: >:: >:: > 42: tie %session, 'Apache::Session::DBI', >:: > 43: {DataSource => "dbi:$db_driver:sessions:$db_address"}; >:: >:: put $sid (session id: undef for fresh) after 'Apache::Session::MySQL'. >:: >:: -- >:: Tatsuhiko Miyagawa <[EMAIL PROTECTED]> >::