logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

teardown with session: msg#00224

Subject: teardown with session
Hey all. I'm trying to be a good do-bee and cleanly disconnect from my database like so:

sub teardown {
   my $self = shift;
   my $dbh = $self->param('dbh');
   $dbh->disconnect;
}

But it looks like I need to do something with my session before disconnecting. I'm using CGI::Session.

I get this message:

[Tue Oct 26 23:35:00 2004] myapp.cgi: DBD::mysql::db selectrow_array failed: MySQL server has gone away at /usr/local/lib/perl5/site_perl/5.8.0/CGI/Session/MySQL.pm line 34.

[Tue Oct 26 23:35:00 2004] myapp.cgi: Use of uninitialized value in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.8.0/CGI/Session/MySQL.pm line 35. [Tue Oct 26 23:35:00 2004] myapp.cgi: Use of uninitialized value in concatenation(.) or string at /usr/local/lib/perl5/site_perl/5.8.0/CGI/Session/MySQL.pm line36. [Tue Oct 26 23:35:00 2004] myapp.cgi: (in cleanup) could not flush: Couldn't acquire lock on id 'bf658dd8f0da59ec993b84b8ddb58aa2'. Lock status: at ./public_html/dev/cgi-bin/myapp.cgi line 18

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>