[Cgi-session-user] puzzled over two flavors of DB drivers
Brought to you by:
sherzodr
From: <ms...@so...> - 2005-12-02 00:26:13
|
I have a question on CGI::Session::MySQL vs. CGI::Session::Driver::mysql (which derives from CGI::Session::Driver::DBI). I attempted to use a CGI::Session (version 3.95) with this code... use CGI::Session; CGI::Session->new( "driver:MySQL", $cgi, {TableName => $TBL, DataSource => $DSN, User => $USER, Password => $PWD } ); but found that the code balked when it did not find a default-named table "sessions". That is, it was ignoring my TableName spec above. And this was because it was using the older CGI::Session::MySQL rather than the DBI approach. I thought this worked for me many months ago when I first looked at it, but perhaps I am imagining it :-) So what is the proper incantation for the above code to work? |