Re: new in CGI::Session::Driver::postgredsql nonexisting
- From: IDK <ulvinge@xxxxxxxxx>
- Date: Thu, 28 Jun 2007 20:04:53 -0000
On Jun 28, 9:46 pm, "J. Gleixner" <glex_no-s...@xxxxxxxxxxxxxxxxxxxxx>
wrote:
IDK wrote:
On Jun 28, 8:38 pm, goodgautam <gautam.chek...@xxxxxxxxx> wrote:
In your code the first param being passed to CGI::Session's
constructor reads : "driver:postgredsql;id:md5" ..
Is that a typo in the code too ( s~postgredsql~postgresql~; ) ? I
think it should be like driver:postgresql ...http://search.cpan.org/dist/CGI-Session/lib/CGI/Session/Driver/postgr...
Wow, that's it!
Thanks!
But now it gives me another error:
Now you should do some debugging before posting another error.
[Thu Jun 28 20:52:39 2007] login: (in cleanup) Can't connect to
data source '' because I can't work out what driver to use (it doesn't
seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is
not set) at /usr/share/perl5/CGI/Session/Driver/DBI.pm line 26
[Thu Jun 28 20:52:39 2007] login: (in cleanup) Can't call method
"commit" on unblessed reference at /usr/share/perl5/CGI/Session/Driver/
DBI.pm line 130 during global destruction.
Read the docs for DBI's connect method, your data source isn't correct,
just as the error is telling you.
I've been debugging that exact error all day, but only recently got
some
progress and found that session.pm was buggy...
I can access other databases with the same DBI handle.
If I replace all the session code with:
$cgi = new CGI;
print header();
Everything works fine, but my goal is to use sessions.
.
- Follow-Ups:
- Re: new in CGI::Session::Driver::postgredsql nonexisting
- From: gautam chekuri
- Re: new in CGI::Session::Driver::postgredsql nonexisting
- References:
- new in CGI::Session::Driver::postgredsql nonexisting
- From: IDK
- Re: new in CGI::Session::Driver::postgredsql nonexisting
- From: goodgautam
- Re: new in CGI::Session::Driver::postgredsql nonexisting
- From: IDK
- Re: new in CGI::Session::Driver::postgredsql nonexisting
- From: J. Gleixner
- new in CGI::Session::Driver::postgredsql nonexisting
- Prev by Date: Re: new in CGI::Session::Driver::postgredsql nonexisting
- Next by Date: Re: map woes
- Previous by thread: Re: new in CGI::Session::Driver::postgredsql nonexisting
- Next by thread: Re: new in CGI::Session::Driver::postgredsql nonexisting
- Index(es):
Relevant Pages
|
|