Re: [Cgi-session-user] Trouble with C::S::SQLite
Brought to you by:
sherzodr
From: Puneet K. <pu...@ei...> - 2006-03-07 14:44:29
|
On Mar 7, 2006, at 8:29 AM, Mark Stosberg wrote: > On Tue, Mar 07, 2006 at 07:45:57AM -0600, Puneet Kishor wrote: > >> well, if I change >> >> new CGI::Session("driver:sqlite", $sid, {Handle=>$DBH}) >> >> to either of the following two choices >> >> new CGI::Session("driver:sqlite", $sid, >> {Handle=>DBI->connect("dbi:SQLite:dbname=/path/to/my.db")}) >> new CGI::Session("driver:sqlite", $sid, >> {DataSource=>"dbi:SQLite:dbname=/path/to/my.db"}) >> >> The session value gets stored in the database alright, but I get the >> following error >> >>>> (in cleanup) Can't call method "commit" on unblessed reference at >> >> /usr/local/ActivePerl-5.8/lib/site_perl/5.8.7/CGI/Session/Driver/ >> DBI.pm >> line 128 >> during global destruction. > > Does it still happen if you call $ses->flush(); before the script > exits? > Yes, the same error as above is displayed even on adding flush() at the end of the script. Hope that helps. -- Puneet Kishor |