pkit_cleanup_code — Cleanup code at the end of request.
sub pkit_cleanup_code {
my $model = shift;
my $dbh = $model->dbh;
$dbh->disconnect;
}
One use for this is to cleanup any database handlers:
Although a better solution is to use Apache::DBI.
Please note, that the session and page_session references are already deleted here. You can not use $model->session and $model->page_session inside the hook.