Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Using CGI:App and Session plugin - double DB connection fix.

by cees (Curate)
on Sep 14, 2005 at 23:52 UTC ( [id://492081]=note: print w/replies, xml ) Need Help??


in reply to Using CGI:App and Session plugin - double DB connection fix.

The nicest way would be to change the MySQL driver for CGI::Session so that it can accept a reference to a sub (ie a closure) instead of just a $dbh.

$self->session_config( CGI_SESSION_OPTIONS => [ "driver:MySQL;serializer:Storable", $self->query, { Handle => sub { ... } } ] );

Replies are listed 'Best First'.
Re^2: Using CGI:App and Session plugin - double DB connection fix.
by techcode (Hermit) on Sep 15, 2005 at 07:42 UTC
    Exactly what I was thinking.

    Yesterday I needed a way to get a list of all blocks inside config file (ini type) from Config::Simple, and I implemented it ... Will do that now with CGI::Session.

    What's the standard procedure in cases like that? Just send an email to authors/maintainers saying what did you changed and attach the file?

      If there is a mailing list for the module, sign up and send the info there. Usually module maintainers prefer to get changes in the form of a diff file (usually diff -u is the prefered format). If you don't use *nix, and don't have diff, then I'm sure you could send the entire file that you changed.

      Also, module maintainers are usually very happy if you include some new tests for the test suite that make sure your new feature is working properly.

      Before you go an do all that work though, it might be worthwhile bringing it up on the mailing list to see if the maintainer will be receptive to the change or not.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://492081]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (10)
As of 2024-04-18 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found