Re: [Cgi-session-user] Use an existing db handle?
Brought to you by:
sherzodr
From: Cees H. <ce...@gm...> - 2005-11-21 22:23:01
|
On 11/21/05, Brett Sanger <swi...@sw...> wrote: > Is there way to pass CGI::Session an existing DB handle for use, rather > than a dsn and options? > > I've got a module that centralizes all the dsn info, and spits out the > handle, but the docs don't make it look like I can use it with > CGI::Session. From the postgres driver docs: $session =3D new CGI::Session("driver:PostgreSQL", undef, {Handle=3D>$dbh, TableName=3D>'my_sessions'}); So just pass a 'Handle' option with your database handle and it will use th= at. Cheers, Cees |