Cody Pendant has asked for the wisdom of the Perl Monks concerning the following question:
I've happily got it working with the default method, using files rather than a db, as demonstrated in the CGI::Session Cookbook * but I'm a bit baffled by the very sparse explanation in the MySQL variant.
I'm to use CGI::Session::MySQL? Or don't I need to, just use CGI::Session and tell it to use a MySQL driver? When I do so, I tell it a database handle, but ... then what? Should I connect to my database before I start using the module, it so that $dbh is already connected? I've tried that and it doesn't do anything, my sessions table in the db never contains any sessions.
Thanks in advance.
* The Cookbook has major glaring errors in it. It's lucky they're so glaring (filenames changing between open and close, arguments passed as sub($x, $y) in one place and as sub($y, $x) in another) or they'd be harder to fix. I wrote to the author and never heard back, who should I tell?
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CGI::Session::MySQL
by jdtoronto (Prior) on Aug 07, 2003 at 02:59 UTC | |
by Cody Pendant (Prior) on Aug 07, 2003 at 03:35 UTC | |
by jdtoronto (Prior) on Aug 07, 2003 at 04:30 UTC | |
by Cody Pendant (Prior) on Aug 07, 2003 at 10:26 UTC | |
Re: CGI::Session::MySQL
by MrCromeDome (Deacon) on Aug 07, 2003 at 18:50 UTC |