[Maypole] Accessing $dbh from within Maypole?

Jesse Sheidlower jester@panix.com
Mon, 1 Mar 2004 22:57:08 -0500


If I need to access the $dbh directly from within Maypole, where
do I find it? (Assuming an Apache::MVC base, of course.)

I'm wanting to set up my session args for authentication, and
have this:

---
package FooDB;
use base qw(Apache::MVC Maypole::Authentication::UserSessionCookie);

FooDB->setup("dbi:mysql:foo","user","password" );
#...
FooDB->config->{auth}{session_class} = "Apache::Session::Flex";
FooDB->config->{auth}{session_args} = 
  {
   Store => 'MySQL',
   Lock => 'Null',
   Generate => 'MD5',
   Serialize => 'Storable',
   Handle => $dbh,     # <<<< what here?
   LockHandle => $dbh  # <<<< likewise
  };
#...
---

Thanks.

Jesse Sheidlower