Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: CGI::Session::MySQL

by MrCromeDome (Deacon)
on Aug 07, 2003 at 18:50 UTC ( [id://281994] : note . print w/replies, xml ) Need Help??


in reply to CGI::Session::MySQL

I completely understand your frustration here. Following the Tutorial and the Cookbook got me nowhere. For whatever reason, I cannot get this to work:
use DBI; use CGI; use CGI::Session; my $request = new CGI; my $dbh = DBI->connect("DBI:mysql:orientation", "user","pass", { Raise +Error => 1}); my $session = new CGI::Session("driver:MySQL", $request, {Handle => $d +bh});
However, this does:
use DBI; use CGI; use CGI::Session; my $request = new CGI; my $dbh = DBI->connect("DBI:mysql:orientation", "user","pass", { Raise +Error => 1}); my $session = new CGI::Session("driver:MySQL", $request, {Handle => $d +bh, DataSource => "DBI:mysql:orientation", User => "user", Password = +> "pass"});
I'm curious to find out why. I've tried to RTFM, but it gets me nowhere.

MrCromeDome